Package org.htmlunit.cssparser.parser
Enum CSSException.ErrorCode
- java.lang.Object
-
- java.lang.Enum<CSSException.ErrorCode>
-
- org.htmlunit.cssparser.parser.CSSException.ErrorCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CSSException.ErrorCode>
- Enclosing class:
- CSSException
protected static enum CSSException.ErrorCode extends java.lang.Enum<CSSException.ErrorCode>
Enum for error codes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_SUPPORTED_ERR
Not supported.SYNTAX_ERR
Syntax error.UNSPECIFIED_ERR
Unspecified.
-
Constructor Summary
Constructors Modifier Constructor Description private
ErrorCode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CSSException.ErrorCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CSSException.ErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED_ERR
public static final CSSException.ErrorCode UNSPECIFIED_ERR
Unspecified.
-
NOT_SUPPORTED_ERR
public static final CSSException.ErrorCode NOT_SUPPORTED_ERR
Not supported.
-
SYNTAX_ERR
public static final CSSException.ErrorCode SYNTAX_ERR
Syntax error.
-
-
Method Detail
-
values
public static CSSException.ErrorCode[] 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 (CSSException.ErrorCode c : CSSException.ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CSSException.ErrorCode 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
-
-