Enum Class JSErrorType
- All Implemented Interfaces:
PrototypeSupplier,Serializable,Comparable<JSErrorType>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCurrently not in use, only there for compatibility with previous versions of the specification ECMA262[15.11.6.1].Indicates a numeric value has exceeded the allowable range ECMA262[15.11.6.2].Indicate that an invalid reference value has been detected ECMA262[15.11.6.3].Indicates that a parsing error has occurred ECMA262[15.11.6.4].Indicates the actual type of an operand is different than the expected type ECMA262[15.11.6.5].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]. -
Method Summary
Modifier and TypeMethodDescriptionstatic JSErrorType[]getIntrinsicDefaultProto(JSRealm realm) static JSErrorTypeReturns the enum constant of this class with the specified name.static JSErrorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Error
-
EvalError
Currently not in use, only there for compatibility with previous versions of the specification ECMA262[15.11.6.1]. -
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]. -
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]. -
AggregateError
-
CompileError
-
LinkError
-
RuntimeError
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getIntrinsicDefaultProto
- Specified by:
getIntrinsicDefaultProtoin interfacePrototypeSupplier
-
errorTypes
-