Enum Class ErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<ErrorCode>
,Constable
Gets or Sets ErrorCode
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorCode
getValue()
toString()
toUrlQueryString
(String prefix) Convert the instance into URL query string.static ErrorCode
Returns the enum constant of this class with the specified name.static ErrorCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_ERROR
-
VALIDATION_ERROR
-
AUTHORIZATION_MODEL_NOT_FOUND
-
AUTHORIZATION_MODEL_RESOLUTION_TOO_COMPLEX
-
INVALID_WRITE_INPUT
-
CANNOT_ALLOW_DUPLICATE_TUPLES_IN_ONE_REQUEST
-
CANNOT_ALLOW_DUPLICATE_TYPES_IN_ONE_REQUEST
-
CANNOT_ALLOW_MULTIPLE_REFERENCES_TO_ONE_RELATION
-
INVALID_CONTINUATION_TOKEN
-
INVALID_TUPLE_SET
-
INVALID_CHECK_INPUT
-
INVALID_EXPAND_INPUT
-
UNSUPPORTED_USER_SET
-
INVALID_OBJECT_FORMAT
-
WRITE_FAILED_DUE_TO_INVALID_INPUT
-
AUTHORIZATION_MODEL_ASSERTIONS_NOT_FOUND
-
LATEST_AUTHORIZATION_MODEL_NOT_FOUND
-
TYPE_NOT_FOUND
-
RELATION_NOT_FOUND
-
EMPTY_RELATION_DEFINITION
-
INVALID_USER
-
INVALID_TUPLE
-
UNKNOWN_RELATION
-
STORE_ID_INVALID_LENGTH
-
ASSERTIONS_TOO_MANY_ITEMS
-
ID_TOO_LONG
-
AUTHORIZATION_MODEL_ID_TOO_LONG
-
TUPLE_KEY_VALUE_NOT_SPECIFIED
-
TUPLE_KEYS_TOO_MANY_OR_TOO_FEW_ITEMS
-
PAGE_SIZE_INVALID
-
PARAM_MISSING_VALUE
-
DIFFERENCE_BASE_MISSING_VALUE
-
SUBTRACT_BASE_MISSING_VALUE
-
OBJECT_TOO_LONG
-
RELATION_TOO_LONG
-
TYPE_DEFINITIONS_TOO_FEW_ITEMS
-
TYPE_INVALID_LENGTH
-
TYPE_INVALID_PATTERN
-
RELATIONS_TOO_FEW_ITEMS
-
RELATIONS_TOO_LONG
-
RELATIONS_INVALID_PATTERN
-
OBJECT_INVALID_PATTERN
-
QUERY_STRING_TYPE_CONTINUATION_TOKEN_MISMATCH
-
EXCEEDED_ENTITY_LIMIT
-
INVALID_CONTEXTUAL_TUPLE
-
DUPLICATE_CONTEXTUAL_TUPLE
-
INVALID_AUTHORIZATION_MODEL
-
UNSUPPORTED_SCHEMA_VERSION
-
CANCELLED
-
INVALID_START_TIME
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-
toString
-
fromValue
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix
- prefix of the query string- Returns:
- URL query string
-