You are currently looking at the v6.0 - v8.2 docs (Reason v3.6 syntax edition). You can find the latest API docs here.
(These docs cover all versions between v3 to v8 and are equivalent to the old BuckleScript docs before the rebrand)
Exn
Provide utilities for dealing with JS exceptions.
t
RE type t;
exn
RE type exn +=
pri
| Error(t);
asJsExn
RElet asJsExn: exn => option(t);
stack
RElet stack: t => option(string);
message
RElet message: t => option(string);
name
RElet name: t => option(string);
fileName
RElet fileName: t => option(string);
isCamlExceptionOrOpenVariant
RElet isCamlExceptionOrOpenVariant: 'a => bool;
Internal use only.
raiseError
RElet raiseError: string => 'a;
Raise Js exception Error object with stacktrace.
raiseEvalError
RElet raiseEvalError: string => 'a;
raiseRangeError
RElet raiseRangeError: string => 'a;
raiseReferenceError
RElet raiseReferenceError: string => 'a;
raiseSyntaxError
RElet raiseSyntaxError: string => 'a;
raiseTypeError
RElet raiseTypeError: string => 'a;
raiseUriError
RElet raiseUriError: string => 'a;