Enum OntopiaRestErrors
- java.lang.Object
-
- java.lang.Enum<OntopiaRestErrors>
-
- net.ontopia.topicmaps.rest.exceptions.OntopiaRestErrors
-
- All Implemented Interfaces:
Serializable
,Comparable<OntopiaRestErrors>
public enum OntopiaRestErrors extends Enum<OntopiaRestErrors>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OntopiaRestException
build(Object... parameters)
OntopiaRestException
build(Throwable cause, Object... parameters)
int
getCode()
String
getMessage()
String
getMessage(Object... parameters)
org.restlet.data.Status
getStatus()
boolean
isClientError()
static OntopiaRestErrors
valueOf(String name)
Returns the enum constant of this type with the specified name.static OntopiaRestErrors[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOPICMAP_NOT_FOUND
public static final OntopiaRestErrors TOPICMAP_NOT_FOUND
-
CANNOT_OPEN_STORE
public static final OntopiaRestErrors CANNOT_OPEN_STORE
-
COULD_NOT_READ_FRAGMENT
public static final OntopiaRestErrors COULD_NOT_READ_FRAGMENT
-
INDEX_NOT_SUPPORTED
public static final OntopiaRestErrors INDEX_NOT_SUPPORTED
-
INDEX_USAGE_ERROR
public static final OntopiaRestErrors INDEX_USAGE_ERROR
-
TOPICMAP_DELETE_NOT_SUPPORTED
public static final OntopiaRestErrors TOPICMAP_DELETE_NOT_SUPPORTED
-
MANDATORY_ATTRIBUTE_IS_NULL
public static final OntopiaRestErrors MANDATORY_ATTRIBUTE_IS_NULL
-
MANDATORY_ATTRIBUTE_IS_WRONG_TYPE
public static final OntopiaRestErrors MANDATORY_ATTRIBUTE_IS_WRONG_TYPE
-
MANDATORY_FIELD_IS_NULL
public static final OntopiaRestErrors MANDATORY_FIELD_IS_NULL
-
MANDATORY_FIELD_IS_WRONG_TYPE
public static final OntopiaRestErrors MANDATORY_FIELD_IS_WRONG_TYPE
-
MANDATORY_OBJECT_IS_NULL
public static final OntopiaRestErrors MANDATORY_OBJECT_IS_NULL
-
MANDATORY_OBJECT_IS_WRONG_TYPE
public static final OntopiaRestErrors MANDATORY_OBJECT_IS_WRONG_TYPE
-
MALFORMED_LOCATOR
public static final OntopiaRestErrors MALFORMED_LOCATOR
-
EMPTY_ENTITY
public static final OntopiaRestErrors EMPTY_ENTITY
-
UNSUPPORTED_MIME_TYPE
public static final OntopiaRestErrors UNSUPPORTED_MIME_TYPE
-
UNKNOWN_QUERY_LANGUAGE
public static final OntopiaRestErrors UNKNOWN_QUERY_LANGUAGE
-
INVALID_QUERY
public static final OntopiaRestErrors INVALID_QUERY
-
-
Method Detail
-
values
public static OntopiaRestErrors[] 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 (OntopiaRestErrors c : OntopiaRestErrors.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OntopiaRestErrors 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
-
getCode
public int getCode()
-
getMessage
public String getMessage()
-
isClientError
public boolean isClientError()
-
getStatus
public org.restlet.data.Status getStatus()
-
build
public OntopiaRestException build(Object... parameters)
-
build
public OntopiaRestException build(Throwable cause, Object... parameters)
-
-