Enum NoSQLErrorCode

Source
#[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 = 102

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 = 104

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:

  1. Authentication information was not provided in the request header.
  2. 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

Source§

fn clone(&self) -> NoSQLErrorCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NoSQLErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for NoSQLErrorCode

Source§

fn eq(&self, other: &NoSQLErrorCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<i32> for NoSQLErrorCode

Source§

type Error = TryFromPrimitiveError<NoSQLErrorCode>

The type returned in the event of a conversion error.
Source§

fn try_from(number: i32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for NoSQLErrorCode

Source§

impl Copy for NoSQLErrorCode

Source§

impl Eq for NoSQLErrorCode

Source§

impl StructuralPartialEq for NoSQLErrorCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,