Package org.skr.common.exception
Enum ErrorInfo.ErrorLevel
- java.lang.Object
-
- java.lang.Enum<ErrorInfo.ErrorLevel>
-
- org.skr.common.exception.ErrorInfo.ErrorLevel
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ErrorInfo.ErrorLevel>,StringValuedEnum
- Enclosing class:
- ErrorInfo
public static enum ErrorInfo.ErrorLevel extends java.lang.Enum<ErrorInfo.ErrorLevel> implements StringValuedEnum
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorInfo.ErrorLevelparse(java.lang.String value)java.lang.Stringvalue()static ErrorInfo.ErrorLevelvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ErrorInfo.ErrorLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WARNING
public static final ErrorInfo.ErrorLevel WARNING
-
ERROR
public static final ErrorInfo.ErrorLevel ERROR
-
FATAL
public static final ErrorInfo.ErrorLevel FATAL
-
-
Method Detail
-
values
public static ErrorInfo.ErrorLevel[] 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 (ErrorInfo.ErrorLevel c : ErrorInfo.ErrorLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorInfo.ErrorLevel 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
-
value
public java.lang.String value()
- Specified by:
valuein interfaceStringValuedEnum
-
parse
public static ErrorInfo.ErrorLevel parse(java.lang.String value)
-
-