#[repr(u32)]
pub enum TarantoolErrorCode {
Show 245 variants Unknown = 0, IllegalParams = 1, MemoryIssue = 2, TupleFound = 3, TupleNotFound = 4, Unsupported = 5, NonMaster = 6, Readonly = 7, Injection = 8, CreateSpace = 9, SpaceExists = 10, DropSpace = 11, AlterSpace = 12, IndexType = 13, ModifyIndex = 14, LastDrop = 15, TupleFormatLimit = 16, DropPrimaryKey = 17, KeyPartType = 18, ExactMatch = 19, InvalidMsgpack = 20, ProcRet = 21, TupleNotArray = 22, FieldType = 23, IndexPartTypeMismatch = 24, Splice = 25, UpdateArgType = 26, FormatMismatchIndexPart = 27, UnknownUpdateOp = 28, UpdateField = 29, FunctionTxActive = 30, KeyPartCount = 31, ProcLua = 32, NoSuchProc = 33, NoSuchTrigger = 34, NoSuchIndexID = 35, NoSuchSpace = 36, NoSuchFieldNo = 37, ExactFieldCount = 38, FieldMissing = 39, WalIo = 40, MoreThanOneTuple = 41, AccessDenied = 42, CreateUser = 43, DropUser = 44, NoSuchUser = 45, UserExists = 46, PasswordMismatch = 47, UnknownRequestType = 48, UnknownSchemaObject = 49, CreateFunction = 50, NoSuchFunction = 51, FunctionExists = 52, BeforeReplaceRet = 53, MultistatementTransaction = 54, TriggerExists = 55, UserMax = 56, NoSuchEngine = 57, ReloadCfg = 58, Cfg = 59, SavepointEmptyTx = 60, NoSuchSavepoint = 61, UnknownReplica = 62, ReplicasetUuidMismatch = 63, InvalidUuid = 64, ReplicasetUuidIsRo = 65, InstanceUuidMismatch = 66, ReplicaIDIsReserved = 67, InvalidOrder = 68, MissingRequestField = 69, Identifier = 70, DropFunction = 71, IteratorType = 72, ReplicaMax = 73, InvalidXlog = 74, InvalidXlogName = 75, InvalidXlogOrder = 76, NoConnection = 77, Timeout = 78, ActiveTransaction = 79, CursorNoTransaction = 80, CrossEngineTransaction = 81, NoSuchRole = 82, RoleExists = 83, CreateRole = 84, IndexExists = 85, SessionClosed = 86, RoleLoop = 87, Grant = 88, PrivGranted = 89, RoleGranted = 90, PrivNotGranted = 91, RoleNotGranted = 92, MissingSnapshot = 93, CantUpdatePrimaryKey = 94, UpdateIntegerOverflow = 95, GuestUserPassword = 96, TransactionConflict = 97, UnsupportedPriv = 98, LoadFunction = 99, FunctionLanguage = 100, RtreeRect = 101, ProcC = 102, UnknownRtreeIndexDistanceType = 103, Protocol = 104, UpsertUniqueSecondaryKey = 105, WrongIndexRecord = 106, WrongIndexParts = 107, WrongIndexOptions = 108, WrongSchemaVersion = 109, MemtxMaxTupleSize = 110, WrongSpaceOptions = 111, UnsupportedIndexFeature = 112, ViewIsRo = 113, NoTransaction = 114, System = 115, Loading = 116, ConnectionToSelf = 117, KeyPartIsTooLong = 118, Compression = 119, CheckpointInProgress = 120, SubStmtMax = 121, CommitInSubStmt = 122, RollbackInSubStmt = 123, Decompression = 124, InvalidXlogType = 125, AlreadyRunning = 126, IndexFieldCountLimit = 127, LocalInstanceIDIsReadOnly = 128, BackupInProgress = 129, ReadViewAborted = 130, InvalidIndexFile = 131, InvalidRunFile = 132, InvalidVylogFile = 133, CheckpointRollback = 134, VyQuotaTimeout = 135, PartialKey = 136, TruncateSystemSpace = 137, LoadModule = 138, VinylMaxTupleSize = 139, WrongDdVersion = 140, WrongSpaceFormat = 141, CreateSequence = 142, AlterSequence = 143, DropSequence = 144, NoSuchSequence = 145, SequenceExists = 146, SequenceOverflow = 147, NoSuchIndexName = 148, SpaceFieldIsDuplicate = 149, CantCreateCollation = 150, WrongCollationOptions = 151, NullablePrimary = 152, NoSuchFieldNameInSpace = 153, TransactionYield = 154, NoSuchGroup = 155, SqlBindValue = 156, SqlBindType = 157, SqlBindParameterMax = 158, SqlExecute = 159, Unused = 160, SqlBindNotFound = 161, ActionMismatch = 162, ViewMissingSql = 163, ForeignKeyConstraint = 164, NoSuchModule = 165, NoSuchCollation = 166, CreateFkConstraint = 167, DropFkConstraint = 168, NoSuchConstraint = 169, ConstraintExists = 170, SqlTypeMismatch = 171, RowidOverflow = 172, DropCollation = 173, IllegalCollationMix = 174, SqlNoSuchPragma = 175, SqlCantResolveField = 176, IndexExistsInSpace = 177, InconsistentTypes = 178, SqlSyntax = 179, SqlStackOverflow = 180, SqlSelectWildcard = 181, SqlStatementEmpty = 182, SqlKeywordIsReserved = 183, SqlUnrecognizedSyntax = 184, SqlUnknownToken = 185, SqlParserGeneric = 186, SqlAnalyzeArgument = 187, SqlColumnCountMax = 188, HexLiteralMax = 189, IntLiteralMax = 190, SqlParserLimit = 191, IndexDefUnsupported = 192, CkDefUnsupported = 193, MultikeyIndexMismatch = 194, CreateCkConstraint = 195, CkConstraintFailed = 196, SqlColumnCount = 197, FuncIndexFunc = 198, FuncIndexFormat = 199, FuncIndexParts = 200, NoSuchFieldNameInTuple = 201, FuncWrongArgCount = 202, BootstrapReadonly = 203, SqlFuncWrongRetCount = 204, FuncInvalidReturnType = 205, SqlParserGenericWithPos = 206, ReplicaNotAnon = 207, CannotRegister = 208, SessionSettingInvalidValue = 209, SqlPrepare = 210, WrongQueryId = 211, SequenceNotStarted = 212, NoSuchSessionSetting = 213, UncommittedForeignSyncTxns = 214, SyncMasterMismatch = 215, SyncQuorumTimeout = 216, SyncRollback = 217, TupleMetadataIsTooBig = 218, XlogGap = 219, TooEarlySubscribe = 220, SqlCantAddAutoinc = 221, QuorumWait = 222, InterferingPromote = 223, ElectionDisabled = 224, TxnRollback = 225, NotLeader = 226, SyncQueueUnclaimed = 227, SyncQueueForeign = 228, UnableToProcessInStream = 229, UnableToProcessOutOfStream = 230, TransactionTimeout = 231, ActiveTimer = 232, TupleFieldCountLimit = 233, CreateConstraint = 234, FieldConstraintFailed = 235, TupleConstraintFailed = 236, CreateForeignKey = 237, ForeignKeyIntegrity = 238, FieldForeignKeyFailed = 239, ComplexForeignKeyFailed = 240, WrongSpaceUpgradeOptions = 241, NoElectionQuorum = 242, Ssl = 243, SplitBrain = 244,
}
Expand description

Codes of Tarantool errors

Variants§

§

Unknown = 0

§

IllegalParams = 1

§

MemoryIssue = 2

§

TupleFound = 3

§

TupleNotFound = 4

§

Unsupported = 5

§

NonMaster = 6

§

Readonly = 7

§

Injection = 8

§

CreateSpace = 9

§

SpaceExists = 10

§

DropSpace = 11

§

AlterSpace = 12

§

IndexType = 13

§

ModifyIndex = 14

§

LastDrop = 15

§

TupleFormatLimit = 16

§

DropPrimaryKey = 17

§

KeyPartType = 18

§

ExactMatch = 19

§

InvalidMsgpack = 20

§

ProcRet = 21

§

TupleNotArray = 22

§

FieldType = 23

§

IndexPartTypeMismatch = 24

§

Splice = 25

§

UpdateArgType = 26

§

FormatMismatchIndexPart = 27

§

UnknownUpdateOp = 28

§

UpdateField = 29

§

FunctionTxActive = 30

§

KeyPartCount = 31

§

ProcLua = 32

§

NoSuchProc = 33

§

NoSuchTrigger = 34

§

NoSuchIndexID = 35

§

NoSuchSpace = 36

§

NoSuchFieldNo = 37

§

ExactFieldCount = 38

§

FieldMissing = 39

§

WalIo = 40

§

MoreThanOneTuple = 41

§

AccessDenied = 42

§

CreateUser = 43

§

DropUser = 44

§

NoSuchUser = 45

§

UserExists = 46

§

PasswordMismatch = 47

§

UnknownRequestType = 48

§

UnknownSchemaObject = 49

§

CreateFunction = 50

§

NoSuchFunction = 51

§

FunctionExists = 52

§

BeforeReplaceRet = 53

§

MultistatementTransaction = 54

§

TriggerExists = 55

§

UserMax = 56

§

NoSuchEngine = 57

§

ReloadCfg = 58

§

Cfg = 59

§

SavepointEmptyTx = 60

§

NoSuchSavepoint = 61

§

UnknownReplica = 62

§

ReplicasetUuidMismatch = 63

§

InvalidUuid = 64

§

ReplicasetUuidIsRo = 65

§

InstanceUuidMismatch = 66

§

ReplicaIDIsReserved = 67

§

InvalidOrder = 68

§

MissingRequestField = 69

§

Identifier = 70

§

DropFunction = 71

§

IteratorType = 72

§

ReplicaMax = 73

§

InvalidXlog = 74

§

InvalidXlogName = 75

§

InvalidXlogOrder = 76

§

NoConnection = 77

§

Timeout = 78

§

ActiveTransaction = 79

§

CursorNoTransaction = 80

§

CrossEngineTransaction = 81

§

NoSuchRole = 82

§

RoleExists = 83

§

CreateRole = 84

§

IndexExists = 85

§

SessionClosed = 86

§

RoleLoop = 87

§

Grant = 88

§

PrivGranted = 89

§

RoleGranted = 90

§

PrivNotGranted = 91

§

RoleNotGranted = 92

§

MissingSnapshot = 93

§

CantUpdatePrimaryKey = 94

§

UpdateIntegerOverflow = 95

§

GuestUserPassword = 96

§

TransactionConflict = 97

§

UnsupportedPriv = 98

§

LoadFunction = 99

§

FunctionLanguage = 100

§

RtreeRect = 101

§

ProcC = 102

§

UnknownRtreeIndexDistanceType = 103

§

Protocol = 104

§

UpsertUniqueSecondaryKey = 105

§

WrongIndexRecord = 106

§

WrongIndexParts = 107

§

WrongIndexOptions = 108

§

WrongSchemaVersion = 109

§

MemtxMaxTupleSize = 110

§

WrongSpaceOptions = 111

§

UnsupportedIndexFeature = 112

§

ViewIsRo = 113

§

NoTransaction = 114

§

System = 115

§

Loading = 116

§

ConnectionToSelf = 117

§

KeyPartIsTooLong = 118

§

Compression = 119

§

CheckpointInProgress = 120

§

SubStmtMax = 121

§

CommitInSubStmt = 122

§

RollbackInSubStmt = 123

§

Decompression = 124

§

InvalidXlogType = 125

§

AlreadyRunning = 126

§

IndexFieldCountLimit = 127

§

LocalInstanceIDIsReadOnly = 128

§

BackupInProgress = 129

§

ReadViewAborted = 130

§

InvalidIndexFile = 131

§

InvalidRunFile = 132

§

InvalidVylogFile = 133

§

CheckpointRollback = 134

§

VyQuotaTimeout = 135

§

PartialKey = 136

§

TruncateSystemSpace = 137

§

LoadModule = 138

§

VinylMaxTupleSize = 139

§

WrongDdVersion = 140

§

WrongSpaceFormat = 141

§

CreateSequence = 142

§

AlterSequence = 143

§

DropSequence = 144

§

NoSuchSequence = 145

§

SequenceExists = 146

§

SequenceOverflow = 147

§

NoSuchIndexName = 148

§

SpaceFieldIsDuplicate = 149

§

CantCreateCollation = 150

§

WrongCollationOptions = 151

§

NullablePrimary = 152

§

NoSuchFieldNameInSpace = 153

§

TransactionYield = 154

§

NoSuchGroup = 155

§

SqlBindValue = 156

§

SqlBindType = 157

§

SqlBindParameterMax = 158

§

SqlExecute = 159

§

Unused = 160

§

SqlBindNotFound = 161

§

ActionMismatch = 162

§

ViewMissingSql = 163

§

ForeignKeyConstraint = 164

§

NoSuchModule = 165

§

NoSuchCollation = 166

§

CreateFkConstraint = 167

§

DropFkConstraint = 168

§

NoSuchConstraint = 169

§

ConstraintExists = 170

§

SqlTypeMismatch = 171

§

RowidOverflow = 172

§

DropCollation = 173

§

IllegalCollationMix = 174

§

SqlNoSuchPragma = 175

§

SqlCantResolveField = 176

§

IndexExistsInSpace = 177

§

InconsistentTypes = 178

§

SqlSyntax = 179

§

SqlStackOverflow = 180

§

SqlSelectWildcard = 181

§

SqlStatementEmpty = 182

§

SqlKeywordIsReserved = 183

§

SqlUnrecognizedSyntax = 184

§

SqlUnknownToken = 185

§

SqlParserGeneric = 186

§

SqlAnalyzeArgument = 187

§

SqlColumnCountMax = 188

§

HexLiteralMax = 189

§

IntLiteralMax = 190

§

SqlParserLimit = 191

§

IndexDefUnsupported = 192

§

CkDefUnsupported = 193

§

MultikeyIndexMismatch = 194

§

CreateCkConstraint = 195

§

CkConstraintFailed = 196

§

SqlColumnCount = 197

§

FuncIndexFunc = 198

§

FuncIndexFormat = 199

§

FuncIndexParts = 200

§

NoSuchFieldNameInTuple = 201

§

FuncWrongArgCount = 202

§

BootstrapReadonly = 203

§

SqlFuncWrongRetCount = 204

§

FuncInvalidReturnType = 205

§

SqlParserGenericWithPos = 206

§

ReplicaNotAnon = 207

§

CannotRegister = 208

§

SessionSettingInvalidValue = 209

§

SqlPrepare = 210

§

WrongQueryId = 211

§

SequenceNotStarted = 212

§

NoSuchSessionSetting = 213

§

UncommittedForeignSyncTxns = 214

§

SyncMasterMismatch = 215

§

SyncQuorumTimeout = 216

§

SyncRollback = 217

§

TupleMetadataIsTooBig = 218

§

XlogGap = 219

§

TooEarlySubscribe = 220

§

SqlCantAddAutoinc = 221

§

QuorumWait = 222

§

InterferingPromote = 223

§

ElectionDisabled = 224

§

TxnRollback = 225

§

NotLeader = 226

§

SyncQueueUnclaimed = 227

§

SyncQueueForeign = 228

§

UnableToProcessInStream = 229

§

UnableToProcessOutOfStream = 230

§

TransactionTimeout = 231

§

ActiveTimer = 232

§

TupleFieldCountLimit = 233

§

CreateConstraint = 234

§

FieldConstraintFailed = 235

§

TupleConstraintFailed = 236

§

CreateForeignKey = 237

§

ForeignKeyIntegrity = 238

§

FieldForeignKeyFailed = 239

§

ComplexForeignKeyFailed = 240

§

WrongSpaceUpgradeOptions = 241

§

NoElectionQuorum = 242

§

Ssl = 243

§

SplitBrain = 244

Implementations§

source§

impl TarantoolErrorCode

source

pub const VARIANTS: &'static [Self] = _

A slice of all possible enum variants.

These are ordered in the order of definition in the source code.

source

pub const MIN: Self = _

The enum variant with the smallest discriminant.

source

pub const MAX: Self = _

The enum variant with the largest discriminant.

source

pub const DISCRIMINANTS_ARE_SUBSEQUENT: bool = true

If this is true then all of the enum variants have subsequent discriminants and converting from integer to enum type is going to use a more efficient implementation.

source

pub const fn variant_name(&self) -> &'static str

Returns the name of the variant as it is spelled in the source code.

source

pub const fn from_i64(n: i64) -> Option<Self>

Converts integer to enum.

Returns None if no variant of the enum has the corresponding discriminant.

source§

impl TarantoolErrorCode

source

pub fn try_last() -> Option<Self>

source

pub fn last() -> Self

Trait Implementations§

source§

impl Clone for TarantoolErrorCode

source§

fn clone(&self) -> TarantoolErrorCode

Returns a copy 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 TarantoolErrorCode

source§

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

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

impl Hash for TarantoolErrorCode

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for TarantoolErrorCode

source§

fn cmp(&self, other: &TarantoolErrorCode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for TarantoolErrorCode

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for TarantoolErrorCode

source§

fn partial_cmp(&self, other: &TarantoolErrorCode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<i16> for TarantoolErrorCode

§

type Error = i16

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

fn try_from(n: i16) -> Result<Self, i16>

Performs the conversion.
source§

impl TryFrom<i32> for TarantoolErrorCode

§

type Error = i32

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

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

Performs the conversion.
source§

impl TryFrom<i64> for TarantoolErrorCode

§

type Error = i64

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

fn try_from(n: i64) -> Result<Self, i64>

Performs the conversion.
source§

impl TryFrom<i8> for TarantoolErrorCode

§

type Error = i8

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

fn try_from(n: i8) -> Result<Self, i8>

Performs the conversion.
source§

impl TryFrom<isize> for TarantoolErrorCode

§

type Error = isize

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

fn try_from(n: isize) -> Result<Self, isize>

Performs the conversion.
source§

impl TryFrom<u16> for TarantoolErrorCode

§

type Error = u16

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

fn try_from(n: u16) -> Result<Self, u16>

Performs the conversion.
source§

impl TryFrom<u32> for TarantoolErrorCode

§

type Error = u32

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

fn try_from(n: u32) -> Result<Self, u32>

Performs the conversion.
source§

impl TryFrom<u64> for TarantoolErrorCode

§

type Error = u64

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

fn try_from(n: u64) -> Result<Self, u64>

Performs the conversion.
source§

impl TryFrom<u8> for TarantoolErrorCode

§

type Error = u8

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

fn try_from(n: u8) -> Result<Self, u8>

Performs the conversion.
source§

impl TryFrom<usize> for TarantoolErrorCode

§

type Error = usize

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

fn try_from(n: usize) -> Result<Self, usize>

Performs the conversion.
source§

impl Copy for TarantoolErrorCode

source§

impl Eq for TarantoolErrorCode

source§

impl StructuralEq for TarantoolErrorCode

source§

impl StructuralPartialEq for TarantoolErrorCode

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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> IntoClones<(T,)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T, T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T, T, T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T, T, T, T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T, T, T, T, T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T, T, T, T, T, T, T, T)> for T
where T: Clone,

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

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

§

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>,

§

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>,

§

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.