Enum tikv_client::Error[][src]

pub enum Error {
    Unimplemented,
    DuplicateKeyInsertion,
    ResolveLockError,
    InvalidTransactionType,
    OperationAfterCommitError,
    OnePcFailure,
    NoPrimaryKey,
    Io(Error),
    Grpc(Error),
    Canceled(Canceled),
    RegionError(Error),
    UndeterminedError(Box<Error, Global>),
    KeyError(KeyError),
    MultipleErrors(Vec<Error, Global>),
    ColumnFamilyError(String),
    RegionForKeyNotFound {
        key: Vec<u8, Global>,
    },
    RegionNotFound {
        region_id: u64,
    },
    LeaderNotFound {
        region_id: u64,
    },
    MaxScanLimitExceeded {
        limit: u32,
        max_limit: u32,
    },
    KvError {
        message: String,
    },
    InternalError {
        message: String,
    },
    StringError(String),
}

An error originating from the TiKV client or dependencies.

Variants

Unimplemented

Feature is not implemented.

DuplicateKeyInsertion

Duplicate key insertion happens.

ResolveLockError

Failed to resolve a lock

InvalidTransactionType

Will raise this error when using a pessimistic txn only operation on an optimistic txn

OperationAfterCommitError

It’s not allowed to perform operations in a transaction after it has been committed or rolled back.

OnePcFailure

We tried to use 1pc for a transaction, but it didn’t work. Probably should have used 2pc.

NoPrimaryKey

An operation requires a primary key, but the transaction was empty.

Io(Error)

Wraps a std::io::Error.

Grpc(Error)

Wraps a grpcio::Error.

Canceled(Canceled)

Represents that a futures oneshot channel was cancelled.

RegionError(Error)

Errors caused by changes of region information

UndeterminedError(Box<Error, Global>)

Whether the transaction is committed or not is undetermined

KeyError(KeyError)

Wraps tikv_client_proto::kvrpcpb::KeyError

MultipleErrors(Vec<Error, Global>)

Multiple errors

ColumnFamilyError(String)

Invalid ColumnFamily

RegionForKeyNotFound

No region is found for the given key.

Fields of RegionForKeyNotFound

key: Vec<u8, Global>
RegionNotFound

No region is found for the given id.

Fields of RegionNotFound

region_id: u64
LeaderNotFound

No leader is found for the given id.

Fields of LeaderNotFound

region_id: u64
MaxScanLimitExceeded

Scan limit exceeds the maximum

Fields of MaxScanLimitExceeded

limit: u32max_limit: u32
KvError

A string error returned by TiKV server

Fields of KvError

message: String
InternalError

Fields of InternalError

message: String
StringError(String)

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Canceled> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<KeyError> for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]