Enum CommonException.Severity
- java.lang.Object
-
- java.lang.Enum<CommonException.Severity>
-
- com.evolveum.midpoint.util.exception.CommonException.Severity
-
- All Implemented Interfaces:
Serializable
,Comparable<CommonException.Severity>
- Enclosing class:
- CommonException
public static enum CommonException.Severity extends Enum<CommonException.Severity>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FATAL_ERROR
HANDLED_ERROR
PARTIAL_ERROR
SUCCESS
WARNING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommonException.Severity
valueOf(String name)
Returns the enum constant of this type with the specified name.static CommonException.Severity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FATAL_ERROR
public static final CommonException.Severity FATAL_ERROR
-
PARTIAL_ERROR
public static final CommonException.Severity PARTIAL_ERROR
-
WARNING
public static final CommonException.Severity WARNING
-
HANDLED_ERROR
public static final CommonException.Severity HANDLED_ERROR
-
SUCCESS
public static final CommonException.Severity SUCCESS
-
-
Method Detail
-
values
public static CommonException.Severity[] 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 (CommonException.Severity c : CommonException.Severity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommonException.Severity 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
-
-