Exn
Provide utilities for dealing with JS exceptions.
t
REStype t
exn
REStype exn +=
private
| Error(t)
asJsExn
RESlet asJsExn: exn => option<t>
stack
RESlet stack: t => option<string>
message
RESlet message: t => option<string>
name
RESlet name: t => option<string>
fileName
RESlet fileName: t => option<string>
isCamlExceptionOrOpenVariant
RESlet isCamlExceptionOrOpenVariant: 'a => bool
Internal use only.
raiseError
RESlet raiseError: string => 'a
Raise Js exception Error object with stacktrace.
raiseEvalError
RESlet raiseEvalError: string => 'a
raiseRangeError
RESlet raiseRangeError: string => 'a
raiseReferenceError
RESlet raiseReferenceError: string => 'a
raiseSyntaxError
RESlet raiseSyntaxError: string => 'a
raiseTypeError
RESlet raiseTypeError: string => 'a
raiseUriError
RESlet raiseUriError: string => 'a