ReferenceError
make
RESCRIPT
let make: string => tCreates a new ReferenceError with the provided message.
See ReferenceError on MDN.
throwWithMessage
RESCRIPT
let throwWithMessage: string => 'aCreates 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.