Package com.abstratt.kirra
Enum KirraException.Kind
- java.lang.Object
-
- java.lang.Enum<KirraException.Kind>
-
- com.abstratt.kirra.KirraException.Kind
-
- All Implemented Interfaces:
Serializable
,Comparable<KirraException.Kind>
- Enclosing class:
- KirraException
public static enum KirraException.Kind extends Enum<KirraException.Kind>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHENTICATION
AUTHORIZATION
ELEMENT_NOT_FOUND
ENTITY
EXTERNAL
INTERNAL
OBJECT_NOT_FOUND
SCHEMA
VALIDATION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KirraException.Kind
valueOf(String name)
Returns the enum constant of this type with the specified name.static KirraException.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ELEMENT_NOT_FOUND
public static final KirraException.Kind ELEMENT_NOT_FOUND
-
ENTITY
public static final KirraException.Kind ENTITY
-
EXTERNAL
public static final KirraException.Kind EXTERNAL
-
OBJECT_NOT_FOUND
public static final KirraException.Kind OBJECT_NOT_FOUND
-
SCHEMA
public static final KirraException.Kind SCHEMA
-
VALIDATION
public static final KirraException.Kind VALIDATION
-
AUTHORIZATION
public static final KirraException.Kind AUTHORIZATION
-
INTERNAL
public static final KirraException.Kind INTERNAL
-
AUTHENTICATION
public static final KirraException.Kind AUTHENTICATION
-
-
Method Detail
-
values
public static KirraException.Kind[] 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 (KirraException.Kind c : KirraException.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KirraException.Kind 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
-
-