Package com.helger.commons.error.level
Enum EErrorLevel
- All Implemented Interfaces:
IErrorLevel,IHasID<String>,ISeverityComparable<IErrorLevel>,IErrorIndicator,ISuccessIndicator,Serializable,Comparable<EErrorLevel>,java.lang.constant.Constable
Represents a generic error level.
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionError levelFatal errorInformation levelSuccessWarning level. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EErrorLevelHighest error level within this enumstatic final EErrorLevelLowest error level within this enum -
Method Summary
Modifier and TypeMethodDescriptionstatic EErrorLevelgetFromIDCaseInsensitiveOrDefault(String sID, EErrorLevel eDefault) static EErrorLevelstatic EErrorLevelstatic EErrorLevelgetFromIDOrDefault(String sID, EErrorLevel eDefault) static EErrorLevelgetFromIDOrNull(String sID) static EErrorLevelgetFromIDOrThrow(String sID) getID()Get the unique ID of this object.intstatic EErrorLevelReturns the enum constant of this type with the specified name.static EErrorLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.helger.commons.error.level.IErrorLevel
compareTo, isEQ, isError, isFailure, isGE, isGT, isHighest, isLE, isLT, isNE, isNoError, isSuccessMethods inherited from interface com.helger.commons.state.ISuccessIndicator
and, or
-
Enum Constant Details
-
SUCCESS
Success -
INFO
Information level -
WARN
Warning level. -
ERROR
Error level -
FATAL_ERROR
Fatal error
-
-
Field Details
-
LOWEST
Lowest error level within this enum -
HIGHEST
Highest error level within this enum
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getID
Description copied from interface:IHasIDGet the unique ID of this object. If the type isStringthan the returned value must match an XML NMToken expression (so e.g. no ':' in the ID)! -
getNumericLevel
- Specified by:
getNumericLevelin interfaceIErrorLevel- Returns:
- The numeric level of this error level. Must be ≥ 0. The higher the numeric level, the higher the priority of the error level. So e.g. ERROR has a higher/larger/greater numerical level than WARNING.
-
getFromIDOrNull
-
getFromIDOrThrow
-
getFromIDOrDefault
@Nullable public static EErrorLevel getFromIDOrDefault(@Nullable String sID, @Nullable EErrorLevel eDefault) -
getFromIDCaseInsensitiveOrNull
-
getFromIDCaseInsensitiveOrThrow
-
getFromIDCaseInsensitiveOrDefault
@Nullable public static EErrorLevel getFromIDCaseInsensitiveOrDefault(@Nullable String sID, @Nullable EErrorLevel eDefault)
-