public enum V8ValueErrorType extends java.lang.Enum<V8ValueErrorType>
Enum Constant and Description |
---|
Error |
RangeError |
ReferenceError |
SyntaxError |
TypeError |
UnknownError |
WasmCompileError |
WasmLinkError |
WasmRuntimeError |
Modifier and Type | Method and Description |
---|---|
int |
getId()
Gets id.
|
java.lang.String |
getName()
Gets name.
|
static V8ValueErrorType |
parse(int id)
Parse V8 value error type.
|
static V8ValueErrorType |
parse(java.lang.String name)
Parse V8 value error type.
|
static V8ValueErrorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static V8ValueErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final V8ValueErrorType Error
public static final V8ValueErrorType RangeError
public static final V8ValueErrorType ReferenceError
public static final V8ValueErrorType SyntaxError
public static final V8ValueErrorType TypeError
public static final V8ValueErrorType WasmCompileError
public static final V8ValueErrorType WasmLinkError
public static final V8ValueErrorType WasmRuntimeError
public static final V8ValueErrorType UnknownError
public static V8ValueErrorType[] values()
for (V8ValueErrorType c : V8ValueErrorType.values()) System.out.println(c);
public static V8ValueErrorType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static V8ValueErrorType parse(int id)
id
- the idpublic static V8ValueErrorType parse(java.lang.String name)
name
- the namepublic int getId()
public java.lang.String getName()