#[repr(i32)]pub enum NoSQLErrorCode {
Show 38 variants
NoError = 0,
UnknownOperation = 1,
TableNotFound = 2,
IndexNotFound = 3,
IllegalArgument = 4,
RowSizeLimitExceeded = 5,
KeySizeLimitExceeded = 6,
BatchOpNumberLimitExceeded = 7,
RequestSizeLimitExceeded = 8,
TableExists = 9,
IndexExists = 10,
InvalidAuthorization = 11,
InsufficientPermission = 12,
ResourceExists = 13,
ResourceNotFound = 14,
TableLimitExceeded = 15,
IndexLimitExceeded = 16,
BadProtocolMessage = 17,
EvolutionLimitExceeded = 18,
TableDeploymentLimitExceeded = 19,
TenantDeploymentLimitExceeded = 20,
OperationNotSupported = 21,
EtagMismatch = 22,
CannotCancelWorkRequest = 23,
UnsupportedProtocol = 24,
ReadLimitExceeded = 50,
WriteLimitExceeded = 51,
SizeLimitExceeded = 52,
OperationLimitExceeded = 53,
RequestTimeout = 100,
ServerError = 101,
ServiceUnavailable = 102,
TableBusy = 103,
SecurityInfoUnavailable = 104,
RetryAuthentication = 105,
UnknownError = 125,
IllegalState = 126,
InternalRetry = 1_001,
}
Variants§
NoError = 0
NoError represents there is no error.
UnknownOperation = 1
UnknownOperation error represents the operation attempted is unknown.
TableNotFound = 2
TableNotFound error represents the operation attempted to access a table that does not exist or is not in a visible state.
IndexNotFound = 3
IndexNotFound error represents the operation attempted to access an index that does not exist or is not in a visible state.
IllegalArgument = 4
IllegalArgument error represents the application provided an illegal argument for the operation.
RowSizeLimitExceeded = 5
RowSizeLimitExceeded error represents an attempt has been made to create a row with a size that exceeds the system defined limit.
This is used for cloud service only.
KeySizeLimitExceeded = 6
KeySizeLimitExceeded error represents an attempt has been made to create a row with a primary key or index key size that exceeds the system defined limit.
This is used for cloud service only.
BatchOpNumberLimitExceeded = 7
BatchOpNumberLimitExceeded error represents that the number of operations included in Client.WriteMultiple operation exceeds the system defined limit.
This is used for cloud service only.
RequestSizeLimitExceeded = 8
RequestSizeLimitExceeded error represents that the size of a request exceeds the system defined limit.
This is used for cloud service only.
TableExists = 9
TableExists error represents the operation attempted to create a table but the named table already exists.
IndexExists = 10
IndexExists error represents the operation attempted to create an index for a table but the named index already exists.
InvalidAuthorization = 11
InvalidAuthorization error represents the client provides an invalid authorization string in the request header.
InsufficientPermission = 12
InsufficientPermission error represents an application does not have sufficient permission to perform a request.
ResourceExists = 13
ResourceExists error represents the operation attempted to create a resource but it already exists.
ResourceNotFound = 14
ResourceNotFound error represents the operation attempted to access a resource that does not exist or is not in a visible state.
TableLimitExceeded = 15
TableLimitExceeded error represents an attempt has been made to create a number of tables that exceeds the system defined limit.
This is used for cloud service only.
IndexLimitExceeded = 16
IndexLimitExceeded error represents an attempt has been made to create more indexes on a table than the system defined limit.
This is used for cloud service only.
BadProtocolMessage = 17
BadProtocolMessage error represents there is an error in the protocol used by client and server to exchange informations. This error is not visible to applications. It is wrapped as an IllegalArgument error and returned to applications.
EvolutionLimitExceeded = 18
EvolutionLimitExceeded error represents an attempt has been made to evolve the schema of a table more times than allowed by the system defined limit.
This is used for cloud service only.
TableDeploymentLimitExceeded = 19
TableDeploymentLimitExceeded error represents an attempt has been made to create or modify a table using limits that exceed the maximum allowed for a single table.
This is system-defined limit, used for cloud service only.
TenantDeploymentLimitExceeded = 20
TenantDeploymentLimitExceeded error represents an attempt has been made to create or modify a table using limits that cause the tenant’s aggregate resources to exceed the maximum allowed for a tenant.
This is system-defined limit, used for cloud service only.
OperationNotSupported = 21
OperationNotSupported error represents the operation attempted is not supported. This may be related to on-premise vs cloud service configurations.
EtagMismatch = 22
EtagMismatch is used only by the cloud REST service.
CannotCancelWorkRequest = 23
CannotCancelWorkRequest is used only by the cloud REST service.
UnsupportedProtocol = 24
UnsupportedProtocol error indicates the server does not support the given driver protocol version. The driver should decrement its internal protocol version (and accompanying logic) and try again.
ReadLimitExceeded = 50
ReadLimitExceeded error represents that the provisioned read throughput has been exceeded.
Operations resulting in this error can be retried but it is recommended that callers use a delay before retrying in order to minimize the chance that a retry will also be throttled. Applications should attempt to avoid throttling errors by rate limiting themselves to the degree possible.
Retries and behavior related to throttling can be managed by configuring the DefaultRetryHandler for client or by providing a custom implementation of the RetryHandler interface for client.
This is used for cloud service only.
WriteLimitExceeded = 51
WriteLimitExceeded error represents that the provisioned write throughput has been exceeded.
Operations resulting in this error can be retried but it is recommended that callers use a delay before retrying in order to minimize the chance that a retry will also be throttled. Applications should attempt to avoid throttling errors by rate limiting themselves to the degree possible.
Retries and behavior related to throttling can be managed by configuring the DefaultRetryHandler for client or by providing a custom implementation of the RetryHandler interface for client.
This is used for cloud service only.
SizeLimitExceeded = 52
SizeLimitExceeded error represents a table size limit has been exceeded by writing more data than the table can support. This error is not retryable because the conditions that lead to it being retuned, while potentially transient, typically require user intervention.
OperationLimitExceeded = 53
OperationLimitExceeded error represents the operation attempted has exceeded the allowed limits for non-data operations defined by the system.
This error is returned when a non-data operation is throttled. This can happen if an application attempts too many control operations such as table creation, deletion, or similar methods. Such operations do not use throughput or capacity provisioned for a given table but they consume system resources and their use is limited.
Operations resulting in this error can be retried but it is recommended that callers use a relatively large delay before retrying in order to minimize the chance that a retry will also be throttled.
This is used for cloud service only.
RequestTimeout = 100
RequestTimeout error represents the request cannot be processed or does not complete when the specified timeout duration elapses.
If a retry handler is configured for the client it is possible that the request has been retried a number of times before the timeout occurs.
ServerError = 101
ServerError represents there is an internal system problem. Most system problems are temporary. The operation that leads to this error may need to retry.
ServiceUnavailable error represents the requested service is currently unavailable. This is usually a temporary error. The operation that leads to this error may need to retry.
TableBusy = 103
TableBusy error represents the table is in use or busy. This error may be returned when a table operation fails. Note that only one modification operation at a time is allowed on a table.
SecurityInfoUnavailable error represents the security information is not ready in the system. This error will occur as the system acquires security information and must be retried in order for authorization to work properly.
This is used for cloud service only.
RetryAuthentication = 105
RetryAuthentication error represents the authentication failed and may need to retry. This may be returned by kvstore.AccessTokenProvider in the following cases:
- Authentication information was not provided in the request header.
- The user session has expired. By default kvstore.AccessTokenProvider will automatically retry authentication with user credentials provided.
UnknownError = 125
UnknownError represents an unknown error has occurred on the server.
IllegalState = 126
IllegalState error represents an illegal state.
InternalRetry = 1_001
InternalRetry is used internally for retry logic.
Trait Implementations§
Source§impl Clone for NoSQLErrorCode
impl Clone for NoSQLErrorCode
Source§fn clone(&self) -> NoSQLErrorCode
fn clone(&self) -> NoSQLErrorCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NoSQLErrorCode
impl Debug for NoSQLErrorCode
Source§impl PartialEq for NoSQLErrorCode
impl PartialEq for NoSQLErrorCode
Source§impl TryFrom<i32> for NoSQLErrorCode
impl TryFrom<i32> for NoSQLErrorCode
Source§type Error = TryFromPrimitiveError<NoSQLErrorCode>
type Error = TryFromPrimitiveError<NoSQLErrorCode>
Source§impl TryFromPrimitive for NoSQLErrorCode
impl TryFromPrimitive for NoSQLErrorCode
const NAME: &'static str = "NoSQLErrorCode"
type Primitive = i32
type Error = TryFromPrimitiveError<NoSQLErrorCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for NoSQLErrorCode
impl Eq for NoSQLErrorCode
impl StructuralPartialEq for NoSQLErrorCode
Auto Trait Implementations§
impl Freeze for NoSQLErrorCode
impl RefUnwindSafe for NoSQLErrorCode
impl Send for NoSQLErrorCode
impl Sync for NoSQLErrorCode
impl Unpin for NoSQLErrorCode
impl UnwindSafe for NoSQLErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.