public enum JSErrorType extends Enum<JSErrorType> implements PrototypeSupplier
Enum.EnumDesc<E extends Enum<E>>| Enum Constant and Description |
|---|
AggregateError |
CompileError |
Error |
EvalError
Currently not in use, only there for compatibility with previous versions of the
specification ECMA262[15.11.6.1].
|
LinkError |
RangeError
Indicates a numeric value has exceeded the allowable range ECMA262[15.11.6.2].
|
ReferenceError
Indicate that an invalid reference value has been detected ECMA262[15.11.6.3].
|
RuntimeError |
SyntaxError
Indicates that a parsing error has occurred ECMA262[15.11.6.4].
|
TypeError
Indicates the actual type of an operand is different than the expected type
ECMA262[15.11.6.5].
|
URIError
Indicates that one of the global URI handling functions was used in a way that is
incompatible with its definition ECMA262[15.11.6.6].
|
| Modifier and Type | Method and Description |
|---|---|
static JSErrorType[] |
errorTypes() |
JSDynamicObject |
getIntrinsicDefaultProto(JSRealm realm) |
static JSErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JSErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSErrorType Error
public static final JSErrorType EvalError
public static final JSErrorType RangeError
public static final JSErrorType ReferenceError
public static final JSErrorType SyntaxError
public static final JSErrorType TypeError
public static final JSErrorType URIError
public static final JSErrorType AggregateError
public static final JSErrorType CompileError
public static final JSErrorType LinkError
public static final JSErrorType RuntimeError
public static JSErrorType[] values()
public static JSErrorType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic JSDynamicObject getIntrinsicDefaultProto(JSRealm realm)
getIntrinsicDefaultProto in interface PrototypeSupplierpublic static JSErrorType[] errorTypes()