Package com.vaadin.server
Enum ErrorMessage.ErrorLevel
- java.lang.Object
-
- java.lang.Enum<ErrorMessage.ErrorLevel>
-
- com.vaadin.server.ErrorMessage.ErrorLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<ErrorMessage.ErrorLevel>
- Enclosing interface:
- ErrorMessage
public static enum ErrorMessage.ErrorLevel extends Enum<ErrorMessage.ErrorLevel>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CRITICAL
Error code for critical error messages.ERROR
Error code for regular error messages.INFORMATION
Error code for informational messages.SYSTEMERROR
Error code for system errors and bugs.WARNING
Error code for warning messages.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorLevel
convertToShared()
Converts this to an error level that can be used on the client side.String
getText()
Textual representation for server-client communication of levelint
intValue()
Integer representation of error severity for comparisonString
toString()
static ErrorMessage.ErrorLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static ErrorMessage.ErrorLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INFORMATION
public static final ErrorMessage.ErrorLevel INFORMATION
Error code for informational messages.
-
WARNING
public static final ErrorMessage.ErrorLevel WARNING
Error code for warning messages.
-
ERROR
public static final ErrorMessage.ErrorLevel ERROR
Error code for regular error messages.
-
CRITICAL
public static final ErrorMessage.ErrorLevel CRITICAL
Error code for critical error messages.
-
SYSTEMERROR
public static final ErrorMessage.ErrorLevel SYSTEMERROR
Error code for system errors and bugs.
-
-
Method Detail
-
values
public static ErrorMessage.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 (ErrorMessage.ErrorLevel c : ErrorMessage.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 ErrorMessage.ErrorLevel valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getText
public String 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
public String toString()
- Overrides:
toString
in classEnum<ErrorMessage.ErrorLevel>
-
convertToShared
public ErrorLevel convertToShared()
Converts this to an error level that can be used on the client side.- Returns:
- error level for the client side
- Since:
- 7.7.11
-
-