Package com.helger.commons.error
Enum ErrorTextProvider.EField
- java.lang.Object
-
- java.lang.Enum<ErrorTextProvider.EField>
-
- com.helger.commons.error.ErrorTextProvider.EField
-
- All Implemented Interfaces:
IHasID<String>,Serializable,Comparable<ErrorTextProvider.EField>
- Enclosing class:
- ErrorTextProvider
public static enum ErrorTextProvider.EField extends Enum<ErrorTextProvider.EField> implements IHasID<String>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorTextProvider.EFieldgetFromIDOrNull(String sID)StringgetID()Get the unique ID of this object.booleanisPlaceholderRequired()static ErrorTextProvider.EFieldvalueOf(String name)Returns the enum constant of this type with the specified name.static ErrorTextProvider.EField[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONSTANT
public static final ErrorTextProvider.EField CONSTANT
-
ERROR_DATETIME
public static final ErrorTextProvider.EField ERROR_DATETIME
-
ERROR_LEVEL
public static final ErrorTextProvider.EField ERROR_LEVEL
-
ERROR_ID
public static final ErrorTextProvider.EField ERROR_ID
-
ERROR_FIELD_NAME
public static final ErrorTextProvider.EField ERROR_FIELD_NAME
-
ERROR_LOCATION
public static final ErrorTextProvider.EField ERROR_LOCATION
-
ERROR_TEXT
public static final ErrorTextProvider.EField ERROR_TEXT
-
ERROR_LINKED_EXCEPTION_CLASS
public static final ErrorTextProvider.EField ERROR_LINKED_EXCEPTION_CLASS
-
ERROR_LINKED_EXCEPTION_MESSAGE
public static final ErrorTextProvider.EField ERROR_LINKED_EXCEPTION_MESSAGE
-
ERROR_LINKED_EXCEPTION_STACK_TRACE
public static final ErrorTextProvider.EField ERROR_LINKED_EXCEPTION_STACK_TRACE
-
ERROR_LINKED_EXCEPTION_CAUSE_CLASS
public static final ErrorTextProvider.EField ERROR_LINKED_EXCEPTION_CAUSE_CLASS
-
ERROR_LINKED_EXCEPTION_CAUSE_MESSAGE
public static final ErrorTextProvider.EField ERROR_LINKED_EXCEPTION_CAUSE_MESSAGE
-
ERROR_LINKED_EXCEPTION_CAUSE_STACK_TRACE
public static final ErrorTextProvider.EField ERROR_LINKED_EXCEPTION_CAUSE_STACK_TRACE
-
-
Method Detail
-
values
public static ErrorTextProvider.EField[] 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 (ErrorTextProvider.EField c : ErrorTextProvider.EField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorTextProvider.EField 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
-
getID
@Nonnull @Nonempty public String 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)!
-
isPlaceholderRequired
public boolean isPlaceholderRequired()
-
getFromIDOrNull
@Nullable public static ErrorTextProvider.EField getFromIDOrNull(@Nullable String sID)
-
-