API / Js / Exn

Exn

Provide utilities for dealing with JS exceptions.

t

RES
type t

exn

type exn += private | 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