Package org.htmlunit.corejs.javascript
Enum TopLevel.NativeErrors
- java.lang.Object
-
- java.lang.Enum<TopLevel.NativeErrors>
-
- org.htmlunit.corejs.javascript.TopLevel.NativeErrors
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TopLevel.NativeErrors>
- Enclosing class:
- TopLevel
static enum TopLevel.NativeErrors extends java.lang.Enum<TopLevel.NativeErrors>
An enumeration of built-in native errors. [ECMAScript 5 - 15.11.6]
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Error
Basic ErrorEvalError
The native EvalError.InternalError
The native InternalError (non-standard).JavaException
The native JavaException (non-standard).RangeError
The native RangeError.ReferenceError
The native ReferenceError.SyntaxError
The native SyntaxError.TypeError
The native TypeError.URIError
The native URIError.
-
Constructor Summary
Constructors Modifier Constructor Description private
NativeErrors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TopLevel.NativeErrors
valueOf(java.lang.String name)
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 Detail
-
Error
public static final TopLevel.NativeErrors Error
Basic Error
-
EvalError
public static final TopLevel.NativeErrors EvalError
The native EvalError.
-
RangeError
public static final TopLevel.NativeErrors RangeError
The native RangeError.
-
ReferenceError
public static final TopLevel.NativeErrors ReferenceError
The native ReferenceError.
-
SyntaxError
public static final TopLevel.NativeErrors SyntaxError
The native SyntaxError.
-
TypeError
public static final TopLevel.NativeErrors TypeError
The native TypeError.
-
URIError
public static final TopLevel.NativeErrors URIError
The native URIError.
-
InternalError
public static final TopLevel.NativeErrors InternalError
The native InternalError (non-standard).
-
JavaException
public static final TopLevel.NativeErrors JavaException
The native JavaException (non-standard).
-
-
Method Detail
-
values
public static TopLevel.NativeErrors[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TopLevel.NativeErrors c : TopLevel.NativeErrors.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TopLevel.NativeErrors valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-