API / Js / Exn

Exn

Provide utilities for dealing with JS exceptions.

t

RES
type t

exn

RES
type exn += private | Error(t)

asJsExn

RES
let asJsExn: exn => option<t>

stack

RES
let stack: t => option<string>

message

RES
let message: t => option<string>

name

RES
let name: t => option<string>

fileName

RES
let fileName: t => option<string>

isCamlExceptionOrOpenVariant

RES
let isCamlExceptionOrOpenVariant: 'a => bool

Internal use only.

raiseError

RES
let raiseError: string => 'a

Raise Js exception Error object with stacktrace.

raiseEvalError

RES
let raiseEvalError: string => 'a

raiseRangeError

RES
let raiseRangeError: string => 'a

raiseReferenceError

RES
let raiseReferenceError: string => 'a

raiseSyntaxError

RES
let raiseSyntaxError: string => 'a

raiseTypeError

RES
let raiseTypeError: string => 'a

raiseUriError

RES
let raiseUriError: string => 'a