|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ConfigurationExceptionCode> de.smartics.exceptions.i18n.app.ConfigurationExceptionCode
public enum ConfigurationExceptionCode
Defines the exception codes for problems with the configuration of the library.
Enum Constant Summary | |
---|---|
COMPOUND_MESSAGE_MISSING A configuration error signaling that values for a compound message a missing. |
|
CONFIGURATION_INACCESSIBLE_GETTER A configuration error signaling an inaccessible getter. |
|
CONFIGURATION_INACCESSIBLE_PROPERTY A configuration error signaling that a property is not accessible. |
|
CONFIGURATION_MISSING_GETTER A configuration error signaling missing getter. |
|
CONFIGURATION_NO_GETTER_FOR_PROPERTY A configuration error signaling that there is no getter to access a property. |
|
CONFIGURATION_NOARG A configuration error signaling that the getter method does not exist. |
|
CONFIGURATION_OGNL_SYNTAX_ERROR A configuration error signaling that there is an error in the OGNL expression of a value. |
|
CONFIGURATION_PROPERTY_RUNTIME_ACCESS A configuration error signaling a runtime problem while accessing the property. |
|
CONFIGURATION_RUNTIME_ACCESS A configuration error signaling a runtime problem while running the getter method's code. |
|
CONFIGURATION_SECURITY A configuration error signaling that accessing the getter raised a security exception. |
|
GENERIC The generic configuration error. |
Method Summary | |
---|---|
String |
getCode() Returns the string representation of the code. |
String |
getComponentId() Returns the component identifier that raised an exception with this code. |
String |
getDisplayId() Returns the string representation of the code. |
Integer |
getMajorNumber() Returns the major number of the code defines a group of codes. |
Integer |
getMinorNumber() Returns the minor number gives additional information about the problem. |
String |
toString() Returns the string representation of the object. |
static ConfigurationExceptionCode |
valueOf(String name) Returns the enum constant of this type with the specified name. |
static ConfigurationExceptionCode[] |
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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ConfigurationExceptionCode GENERIC
public static final ConfigurationExceptionCode CONFIGURATION_MISSING_GETTER
public static final ConfigurationExceptionCode CONFIGURATION_INACCESSIBLE_GETTER
public static final ConfigurationExceptionCode CONFIGURATION_RUNTIME_ACCESS
public static final ConfigurationExceptionCode CONFIGURATION_NOARG
public static final ConfigurationExceptionCode CONFIGURATION_SECURITY
public static final ConfigurationExceptionCode CONFIGURATION_PROPERTY_RUNTIME_ACCESS
public static final ConfigurationExceptionCode CONFIGURATION_INACCESSIBLE_PROPERTY
public static final ConfigurationExceptionCode CONFIGURATION_NO_GETTER_FOR_PROPERTY
public static final ConfigurationExceptionCode CONFIGURATION_OGNL_SYNTAX_ERROR
public static final ConfigurationExceptionCode COMPOUND_MESSAGE_MISSING
Method Detail |
---|
public static ConfigurationExceptionCode[] values()
for (ConfigurationExceptionCode c : ConfigurationExceptionCode.values()) System.out.println(c);
public static ConfigurationExceptionCode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null
public String getCode()
Code
This is the code within the component and lacks the component identifier. If the component is interested in the code, this identifier is used.
getCode
in interface
Code
public String getComponentId()
This number enables the system to separate the error codes of different sub systems.
getComponentId
in interface
Code
public Integer getMajorNumber()
NumberCode
For example HTTP knows the major numbers 100, 200, 300, 400, etc.
getMajorNumber
in interface
NumberCode
public Integer getMinorNumber()
NumberCode
null
, there is no minor number specified.
For example HTTP knows the minor number 4 for page not found. This will add with the major number to 404.
getMinorNumber
in interface
NumberCode
public String getDisplayId()
Code
This returns the same value as Code.toString()
as this method can be used via property getter.
getDisplayId
in interface
Code
public String toString()
toString
in interface
Code
toString
in class
Enum<ConfigurationExceptionCode>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |