This article covers features introduced in SpiderMonkey 17

Possible exception types.

Value Prototype in JavaScript
JSEXN_NONE An unthrowable error. (lower bound)
JSEXN_ERR Error
JSEXN_INTERNALERR InternalError
JSEXN_EVALERR EvalError
JSEXN_RANGEERR RangeError
JSEXN_REFERENCEERR ReferenceError
JSEXN_SYNTAXERR SyntaxError
JSEXN_TYPEERR TypeError
JSEXN_URIERR URIError
JSEXN_LIMIT (upper bound)

Description

These types are part of a JSErrorFormatString structure. They define which error to throw in case of a runtime error. JSEXN_NONE marks an unthrowable error.

See Also