|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ParseExceptionCode> de.smartics.exceptions.i18n.app.ParseExceptionCode
public enum ParseExceptionCode
Defines the parsing exception codes for this package.
Enum Constant Summary | |
---|---|
GENERIC The generic parsing error. |
|
MISSING_PARENT_PROPERTY_ATTRIBUTE Parsing the value for a parent attribute failed because the attribute in front of the = -sign is missing. |
|
MISSING_PARENT_PROPERTY_INDEX Parsing the value for a parent attribute failed because the index after the = -sign is missing. |
|
MISSING_PARENT_PROPERTY_SEPARATOR Parsing the value for a parent attribute failed because the = -sign is missing. |
|
OGNL Parsing an OGNL path expression failed. |
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 ParseExceptionCode |
valueOf(String name) Returns the enum constant of this type with the specified name. |
static ParseExceptionCode[] |
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 ParseExceptionCode GENERIC
public static final ParseExceptionCode OGNL
public static final ParseExceptionCode MISSING_PARENT_PROPERTY_SEPARATOR
=
-sign is missing. The
=
-sign separates the attribute name from the index information.
The parent attribute is an attribute specified by the super class of an exception. The parent exception may be of a standard library and therefore cannot be annotated so the annotation is placed in the subclass.
public static final ParseExceptionCode MISSING_PARENT_PROPERTY_ATTRIBUTE
=
-sign is missing.
The parent attribute is an attribute specified by the super class of an exception. The parent exception may be of a standard library and therefore cannot be annotated so the annotation is placed in the subclass.
public static final ParseExceptionCode MISSING_PARENT_PROPERTY_INDEX
=
-sign is missing.
The parent attribute is an attribute specified by the super class of an exception. The parent exception may be of a standard library and therefore cannot be annotated so the annotation is placed in the subclass.
Method Detail |
---|
public static ParseExceptionCode[] values()
for (ParseExceptionCode c : ParseExceptionCode.values()) System.out.println(c);
public static ParseExceptionCode 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()
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
Code.getCode()
public String getComponentId()
This number enables the system to separate the error codes of different sub systems.
getComponentId
in interface
Code
Code.getComponentId()
public Integer getMajorNumber()
For example HTTP knows the major numbers 100, 200, 300, 400, etc.
getMajorNumber
in interface
NumberCode
NumberCode.getMajorNumber()
public Integer getMinorNumber()
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
NumberCode.getMinorNumber()
public String getDisplayId()
This returns the same value as Code.toString()
as this method can be used via property getter.
getDisplayId
in interface
Code
Code.getDisplayId()
public String toString()
toString
in interface
Code
toString
in class
Enum<ParseExceptionCode>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |