EvalError
make
RESCRIPT
let make: string => t
Creates a new EvalError
with the provided message
.
See EvalError
on MDN.
throwWithMessage
RESCRIPT
let throwWithMessage: string => 'a
Creates a new EvalError
with the provided message
and throws it.
JsError.EvalError.throwWithMessage("message")
is equivalent to JsError.EvalError.make("message")->JsError.throw
.
See EvalError
on MDN.