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