Enum TopLevel.NativeErrors
- All Implemented Interfaces:
Serializable, Comparable<TopLevel.NativeErrors>, java.lang.constant.Constable
- Enclosing class:
TopLevel
An enumeration of built-in native errors. [ECMAScript 5 - 15.11.6]
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBasic ErrorThe native EvalError.The native InternalError (non-standard).The native JavaException (non-standard).The native RangeError.The native ReferenceError.The native SyntaxError.The native TypeError.The native URIError. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TopLevel.NativeErrors
Returns the enum constant of this type with the specified name.static TopLevel.NativeErrors[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Error
Basic Error -
EvalError
The native EvalError. -
RangeError
The native RangeError. -
ReferenceError
The native ReferenceError. -
SyntaxError
The native SyntaxError. -
TypeError
The native TypeError. -
URIError
The native URIError. -
InternalError
The native InternalError (non-standard). -
JavaException
The native JavaException (non-standard).
-
-
Constructor Details
-
NativeErrors
private NativeErrors()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-