Package com.x2j.converter.utils
Enum X2JErrorCodes
- All Implemented Interfaces:
Serializable
,Comparable<X2JErrorCodes>
,java.lang.constant.Constable
Error codes to uniquely identify/associate an error scenario.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFatal error.Error while reading XML from file.Error while reading JSON from file/string.Error while parsing JSON from file/string.Error while reading XML data using XPaths.Error while reading XML attribute value using XPaths.Error while reading XML element using XPaths.Error while converting XML element/document to String.Error while writing JSON to file.Error while parsing XML from String.Input XML file not found.Error during string operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic X2JErrorCodes
Returns the enum constant of this type with the specified name.static X2JErrorCodes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
X2J_ERR_000
Fatal error. Please rebuild the jar or download the latest one from Github. -
X2J_ERR_001
Error while reading XML from file. -
X2J_ERR_002
Error while reading JSON from file/string. -
X2J_ERR_003
Error while parsing JSON from file/string. -
X2J_ERR_004
Error while reading XML data using XPaths. -
X2J_ERR_005
Error while reading XML attribute value using XPaths. -
X2J_ERR_006
Error while reading XML element using XPaths. -
X2J_ERR_007
Error while converting XML element/document to String. -
X2J_ERR_008
Error while writing JSON to file. -
X2J_ERR_009
Error while parsing XML from String. -
X2J_ERR_010
Input XML file not found. -
X2J_ERR_011
Error during string operation.
-
-
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
-