public static enum ErrorHelper.ErrorMessage extends java.lang.Enum<ErrorHelper.ErrorMessage>
Enum Constant and Description |
---|
CLOSED_LOGGER |
INVALID_LOGGER_FOR_DOMAIN |
INVALID_NULL_ARG |
INVALID_NULL_OR_EMPTY_ARG |
SCOPE_NOT_FOUND |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalizedMessage(java.lang.Object... args)
The error message obtained from the resource bundle taking the
current locale into consideration.
|
java.lang.String |
getLogMessage(java.lang.Object... args) |
static ErrorHelper.ErrorMessage |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorHelper.ErrorMessage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorHelper.ErrorMessage SCOPE_NOT_FOUND
public static final ErrorHelper.ErrorMessage INVALID_LOGGER_FOR_DOMAIN
public static final ErrorHelper.ErrorMessage CLOSED_LOGGER
public static final ErrorHelper.ErrorMessage INVALID_NULL_OR_EMPTY_ARG
public static final ErrorHelper.ErrorMessage INVALID_NULL_ARG
public static ErrorHelper.ErrorMessage[] values()
for (ErrorHelper.ErrorMessage c : ErrorHelper.ErrorMessage.values()) System.out.println(c);
public static ErrorHelper.ErrorMessage valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getLocalizedMessage(java.lang.Object... args)
The error message obtained from the resource bundle taking the
current locale into consideration. The locale will be retrieved
from the current ADFContext
.
args
- Optional array containing all arguments expected to fill up
the error message's template.StringManager.getLocalizedString(String,String,String,java.util.Locale,Object[])
public java.lang.String getLogMessage(java.lang.Object... args)