Package org.hpccsystems.commons.errors
Enum HpccErrorLevel
- java.lang.Object
-
- java.lang.Enum<HpccErrorLevel>
-
- org.hpccsystems.commons.errors.HpccErrorLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<HpccErrorLevel>
public enum HpccErrorLevel extends Enum<HpccErrorLevel>
The severity of an error.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HpccErrorLevel
getErrorLevel(int eclenum)
Gets the error level.static HpccErrorLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static HpccErrorLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FATAL
public static final HpccErrorLevel FATAL
-
ERROR
public static final HpccErrorLevel ERROR
-
WARNING
public static final HpccErrorLevel WARNING
-
INFO
public static final HpccErrorLevel INFO
-
-
Method Detail
-
values
public static HpccErrorLevel[] 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 (HpccErrorLevel c : HpccErrorLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HpccErrorLevel 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
-
getErrorLevel
public static HpccErrorLevel getErrorLevel(int eclenum)
Gets the error level.- Parameters:
eclenum
- the eclenum- Returns:
- the error level
-
-