Error responses will contain a human readable message about what happened, but will also contain a numeric code describing the type of error. The following list provides an enumeration of these values with a bit of detail about the error type they represent.
Error code grouping and enumeration
Error Code | Description | Numeric Value |
---|---|---|
General Errors | ||
Unknown Cause | ||
GENERIC_ERROR | Unable to match error to a more specific error code | 1000 |
Protocol Errors | ||
VALUE_ENCODING_ERROR | Request data can not be decoded, or unable to encode response | 1100 |
UNSUPPORTED_VERSION | Server is unable to process the given protocol version | 1101 |
UNSUPPORTED_OPERATION | Target is unable to handle the given operation type | 1102 |
UNSUPPORTED_AUTHENTICATION_MODE | Server doesn't support the requested authentication mode | 1103 |
HANDSHAKE_REQUIRED | Protocol handshake has not yet been performed for this connection | 1104 |
Authentication Errors | ||
AUTHENTICATION_FAILED | Unable to authenticate the client | 1200 |
AUTHORIZATION_FAILED | Client isn't authorized to run the attempted request | 1201 |
ALREADY_AUTHENTICATED | Client is trying to authenticate after already having done so | 1202 |
AUTHENTICATION_NOT_SUPPORTED | Client is trying to authenticate on a server that doesn't support authentication | 1203 |
Server Errors | ||
LOW_MEMORY | Server did not have enough memory to run the request | 1300 |
DATA_UNREACHABLE | Server was unable to access the system containing the requested data | 1301 |
OPERATION_TIMEOUT | Server was unable to complete the operation quickly enough | 1302 |
Operation Failures | ||
Generic Operation Errors | ||
CONSTRAINT_VIOLATION | Request parameters did not match system requirements | 2000 |
BAD_QUERY | Request is malformed or is of an unknown type | 2001 |
Region Errors | ||
REGION_NOT_FOUND | Request is attempting to access a region which doesn't exist on the server | 2100 |
Query Specific Errors | ||
QUERY_PARAMETER_MISMATCH | Query request does not match the expected number of parameters | 2200 |
QUERY_BIND_FAILURE | Parameters are not of the correct type | 2201 |
QUERY_NOT_PERMITTED | Query is not allowed on the target region | 2202 |
QUERY_TIMEOUT | Query did not complete in time | 2203 |
The client will receive error codes from the server. The following definitions will provide more details to the error code and its relating server component.
Error codes will be split according to functional area. This means that error codes that are specific to a functional area will be defined by its API.
The functional area codes are defined on the API's page.
Error codes defined per functional area
Error Codes for Functional Area |
---|
General System Error Codes |
Authentication Specific Error Codes |
Exception Type | ErrorCode |
---|---|
AUTHENICATION_REQUIRED_EXCEPTION | 1 |
AUTHORIZATION_FAILED_EXCEPTION | 2 |
AUTHETICATIONFAILED_EXCEPTION | 3 |
BUCKET_MOVED_EXCEPTION | 4 |
SERIALIZATION_EXCEPTION | 5 |
INTERRUPTED_EXCEPTION | 6 |
ILLEGAL_ARGUMNET_EXCEPTION | 7 |
ILLEGAL_STATE_EXCEPTION | 8 |
TIMEOUT_EXCEPTION | 9 |
CACHE_WRITER_EXCEPTION | 10 |
REGION_EXIST_EXCEPTION | 11 |
REGION_NOT_EXIST_EXCEPTION | 12 |
LEASE_EXPIRED_EXCEPTION | 13 |
CACHE_LOADER_EXCEPTION | 14 |
REGION_DESTROYED_EXCEPTION | 15 |
ENTRY_DESTROYED_EXCEPTION | 16 |
ENTRY_NOT_FOUND_EXCEPTION | 17 |
FUNCTION_NOT_FOUND_EXCEPTION | 18 |
FUNCTION_ATTRIBUTE_MISMATCH_EXCEPTION | 19 |
FUNCTION_EXECUTION_EXCEPTION | 20 |
CONCURRENT_MODIFICATION_EXCEPTION | 21 |
UNKNOWN_EXCEPTION | 22 |
CLASS_CAST_EXCEPTION | 23 |
GEODE_IO_EXCEPTION | 24 |
NULL_POINTER_EXCEPTION | 25 |
ENTRY_EXIST_EXCEPTION | 26 |
DISK_ACCESS_EXCEPTION | 27 |
QUERY_EXCEPTION | 28 |
CACHE_CLOSED_EXCEPTION | 29 |
MESSAGE_FORMAT_EXCEPTION | 30 |
CACHE_LISTENER_EXCEPTION | 31 |
CQ_EXCEPTION | 32 |
CQ_CLOSED_EXCEPTION | 33 |
CQ_QUERY_EXCEPTION | 34 |
CQ_EXIST_EXCEPTION | 35 |
CQ_INVALID_EXCEPTION | 36 |
INVALID_DELTA_EXCEPTION | 37 |
TRANSACTION_EXCEPTION | 38 |
TRANSACTION_DATA_NODE_DEPARTED_EXCEPTION | 39 |
TRANSACTION_REBALANCED_EXCEPTION | 40 |
COMMIT_CONFLICT_EXCEPTION | 41 |
PUTALL_PARTIAL_RESULT_EXCEPTION | 42 |