You are currently looking at the < v8.2.0 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
type t;
exn
type exn +=
pri
| Error(t);
asJsExn
let asJsExn: exn => option(t);
stack
let stack: t => option(string);
message
let message: t => option(string);
name
let name: t => option(string);
fileName
let fileName: t => option(string);
isCamlExceptionOrOpenVariant
let isCamlExceptionOrOpenVariant: 'a => bool;
Internal use only.
raiseError
let raiseError: string => 'a;
Raise Js exception Error object with stacktrace.
raiseEvalError
let raiseEvalError: string => 'a;
raiseRangeError
let raiseRangeError: string => 'a;
raiseReferenceError
let raiseReferenceError: string => 'a;
raiseSyntaxError
let raiseSyntaxError: string => 'a;
raiseTypeError
let raiseTypeError: string => 'a;
raiseUriError
let raiseUriError: string => 'a;