Package com.vaadin.featurepack.server
Enum Class ErrorMessage.ErrorLevel
- All Implemented Interfaces:
Serializable,Comparable<ErrorMessage.ErrorLevel>,Constable
- Enclosing interface:
ErrorMessage
Vaadin 7 error levels.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionError code for critical error messages.Error code for regular error messages.Error code for informational messages.Error code for system errors and bugs.Error code for warning messages. -
Method Summary
Modifier and TypeMethodDescriptiongetText()Textual representation for server-client communication of levelintintValue()Integer representation of error severity for comparisontoString()static ErrorMessage.ErrorLevelReturns the enum constant of this class with the specified name.static ErrorMessage.ErrorLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INFORMATION
Error code for informational messages. -
WARNING
Error code for warning messages. -
ERROR
Error code for regular error messages. -
CRITICAL
Error code for critical error messages. -
SYSTEMERROR
Error code for system errors and bugs.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getText
Textual representation for server-client communication of level- Returns:
- String for error severity
-
intValue
public int intValue()Integer representation of error severity for comparison- Returns:
- integer for error severity
-
toString
- Overrides:
toStringin classEnum<ErrorMessage.ErrorLevel>
-