asynctnt.exceptions

Module Contents

Classes

ErrorCode

Tarantool default error codes

exception asynctnt.exceptions.TarantoolError[source]

Bases: Exception

Base Tarantool Exception class

exception asynctnt.exceptions.TarantoolSchemaError[source]

Bases: TarantoolError

Exception is raised when any problems with schema occurred

exception asynctnt.exceptions.TarantoolDatabaseError(code: int, message: str, error: asynctnt.iproto.protocol.IProtoError | None)[source]

Bases: TarantoolError

Exception is raised when Tarantool responds with code != 0

exception asynctnt.exceptions.TarantoolNetworkError[source]

Bases: TarantoolError

Base Tarantool Exception class

exception asynctnt.exceptions.TarantoolNotConnectedError[source]

Bases: TarantoolNetworkError

Raised when asynctnt is not connected to Tarantool

class asynctnt.exceptions.ErrorCode[source]

Bases: enum.IntEnum

Tarantool default error codes

ER_UNKNOWN = 0[source]
ER_ILLEGAL_PARAMS = 1[source]
ER_MEMORY_ISSUE = 2[source]
ER_TUPLE_FOUND = 3[source]
ER_TUPLE_NOT_FOUND = 4[source]
ER_UNSUPPORTED = 5[source]
ER_NONMASTER = 6[source]
ER_READONLY = 7[source]
ER_INJECTION = 8[source]
ER_CREATE_SPACE = 9[source]
ER_SPACE_EXISTS = 10[source]
ER_DROP_SPACE = 11[source]
ER_ALTER_SPACE = 12[source]
ER_INDEX_TYPE = 13[source]
ER_MODIFY_INDEX = 14[source]
ER_LAST_DROP = 15[source]
ER_TUPLE_FORMAT_LIMIT = 16[source]
ER_DROP_PRIMARY_KEY = 17[source]
ER_KEY_PART_TYPE = 18[source]
ER_EXACT_MATCH = 19[source]
ER_INVALID_MSGPACK = 20[source]
ER_PROC_RET = 21[source]
ER_TUPLE_NOT_ARRAY = 22[source]
ER_FIELD_TYPE = 23[source]
ER_INDEX_PART_TYPE_MISMATCH = 24[source]
ER_UPDATE_SPLICE = 25[source]
ER_UPDATE_ARG_TYPE = 26[source]
ER_FORMAT_MISMATCH_INDEX_PART = 27[source]
ER_UNKNOWN_UPDATE_OP = 28[source]
ER_UPDATE_FIELD = 29[source]
ER_FUNCTION_TX_ACTIVE = 30[source]
ER_KEY_PART_COUNT = 31[source]
ER_PROC_LUA = 32[source]
ER_NO_SUCH_PROC = 33[source]
ER_NO_SUCH_TRIGGER = 34[source]
ER_NO_SUCH_INDEX_ID = 35[source]
ER_NO_SUCH_SPACE = 36[source]
ER_NO_SUCH_FIELD_NO = 37[source]
ER_EXACT_FIELD_COUNT = 38[source]
ER_FIELD_MISSING = 39[source]
ER_WAL_IO = 40[source]
ER_MORE_THAN_ONE_TUPLE = 41[source]
ER_ACCESS_DENIED = 42[source]
ER_CREATE_USER = 43[source]
ER_DROP_USER = 44[source]
ER_NO_SUCH_USER = 45[source]
ER_USER_EXISTS = 46[source]
ER_PASSWORD_MISMATCH = 47[source]
ER_UNKNOWN_REQUEST_TYPE = 48[source]
ER_UNKNOWN_SCHEMA_OBJECT = 49[source]
ER_CREATE_FUNCTION = 50[source]
ER_NO_SUCH_FUNCTION = 51[source]
ER_FUNCTION_EXISTS = 52[source]
ER_BEFORE_REPLACE_RET = 53[source]
ER_MULTISTATEMENT_TRANSACTION = 54[source]
ER_TRIGGER_EXISTS = 55[source]
ER_USER_MAX = 56[source]
ER_NO_SUCH_ENGINE = 57[source]
ER_RELOAD_CFG = 58[source]
ER_CFG = 59[source]
ER_SAVEPOINT_EMPTY_TX = 60[source]
ER_NO_SUCH_SAVEPOINT = 61[source]
ER_UNKNOWN_REPLICA = 62[source]
ER_REPLICASET_UUID_MISMATCH = 63[source]
ER_INVALID_UUID = 64[source]
ER_REPLICASET_UUID_IS_RO = 65[source]
ER_INSTANCE_UUID_MISMATCH = 66[source]
ER_REPLICA_ID_IS_RESERVED = 67[source]
ER_INVALID_ORDER = 68[source]
ER_MISSING_REQUEST_FIELD = 69[source]
ER_IDENTIFIER = 70[source]
ER_DROP_FUNCTION = 71[source]
ER_ITERATOR_TYPE = 72[source]
ER_REPLICA_MAX = 73[source]
ER_INVALID_XLOG = 74[source]
ER_INVALID_XLOG_NAME = 75[source]
ER_INVALID_XLOG_ORDER = 76[source]
ER_NO_CONNECTION = 77[source]
ER_TIMEOUT = 78[source]
ER_ACTIVE_TRANSACTION = 79[source]
ER_CURSOR_NO_TRANSACTION = 80[source]
ER_CROSS_ENGINE_TRANSACTION = 81[source]
ER_NO_SUCH_ROLE = 82[source]
ER_ROLE_EXISTS = 83[source]
ER_CREATE_ROLE = 84[source]
ER_INDEX_EXISTS = 85[source]
ER_SESSION_CLOSED = 86[source]
ER_ROLE_LOOP = 87[source]
ER_GRANT = 88[source]
ER_PRIV_GRANTED = 89[source]
ER_ROLE_GRANTED = 90[source]
ER_PRIV_NOT_GRANTED = 91[source]
ER_ROLE_NOT_GRANTED = 92[source]
ER_MISSING_SNAPSHOT = 93[source]
ER_CANT_UPDATE_PRIMARY_KEY = 94[source]
ER_UPDATE_INTEGER_OVERFLOW = 95[source]
ER_GUEST_USER_PASSWORD = 96[source]
ER_TRANSACTION_CONFLICT = 97[source]
ER_UNSUPPORTED_PRIV = 98[source]
ER_LOAD_FUNCTION = 99[source]
ER_FUNCTION_LANGUAGE = 100[source]
ER_RTREE_RECT = 101[source]
ER_PROC_C = 102[source]
ER_UNKNOWN_RTREE_INDEX_DISTANCE_TYPE = 103[source]
ER_PROTOCOL = 104[source]
ER_UPSERT_UNIQUE_SECONDARY_KEY = 105[source]
ER_WRONG_INDEX_RECORD = 106[source]
ER_WRONG_INDEX_PARTS = 107[source]
ER_WRONG_INDEX_OPTIONS = 108[source]
ER_WRONG_SCHEMA_VERSION = 109[source]
ER_MEMTX_MAX_TUPLE_SIZE = 110[source]
ER_WRONG_SPACE_OPTIONS = 111[source]
ER_UNSUPPORTED_INDEX_FEATURE = 112[source]
ER_VIEW_IS_RO = 113[source]
ER_NO_TRANSACTION = 114[source]
ER_SYSTEM = 115[source]
ER_LOADING = 116[source]
ER_CONNECTION_TO_SELF = 117[source]
ER_KEY_PART_IS_TOO_LONG = 118[source]
ER_COMPRESSION = 119[source]
ER_CHECKPOINT_IN_PROGRESS = 120[source]
ER_SUB_STMT_MAX = 121[source]
ER_COMMIT_IN_SUB_STMT = 122[source]
ER_ROLLBACK_IN_SUB_STMT = 123[source]
ER_DECOMPRESSION = 124[source]
ER_INVALID_XLOG_TYPE = 125[source]
ER_ALREADY_RUNNING = 126[source]
ER_INDEX_FIELD_COUNT_LIMIT = 127[source]
ER_LOCAL_INSTANCE_ID_IS_READ_ONLY = 128[source]
ER_BACKUP_IN_PROGRESS = 129[source]
ER_READ_VIEW_ABORTED = 130[source]
ER_INVALID_INDEX_FILE = 131[source]
ER_INVALID_RUN_FILE = 132[source]
ER_INVALID_VYLOG_FILE = 133[source]
ER_CASCADE_ROLLBACK = 134[source]
ER_VY_QUOTA_TIMEOUT = 135[source]
ER_PARTIAL_KEY = 136[source]
ER_TRUNCATE_SYSTEM_SPACE = 137[source]
ER_LOAD_MODULE = 138[source]
ER_VINYL_MAX_TUPLE_SIZE = 139[source]
ER_WRONG_DD_VERSION = 140[source]
ER_WRONG_SPACE_FORMAT = 141[source]
ER_CREATE_SEQUENCE = 142[source]
ER_ALTER_SEQUENCE = 143[source]
ER_DROP_SEQUENCE = 144[source]
ER_NO_SUCH_SEQUENCE = 145[source]
ER_SEQUENCE_EXISTS = 146[source]
ER_SEQUENCE_OVERFLOW = 147[source]
ER_NO_SUCH_INDEX_NAME = 148[source]
ER_SPACE_FIELD_IS_DUPLICATE = 149[source]
ER_CANT_CREATE_COLLATION = 150[source]
ER_WRONG_COLLATION_OPTIONS = 151[source]
ER_NULLABLE_PRIMARY = 152[source]
ER_NO_SUCH_FIELD_NAME_IN_SPACE = 153[source]
ER_TRANSACTION_YIELD = 154[source]
ER_NO_SUCH_GROUP = 155[source]
ER_SQL_BIND_VALUE = 156[source]
ER_SQL_BIND_TYPE = 157[source]
ER_SQL_BIND_PARAMETER_MAX = 158[source]
ER_SQL_EXECUTE = 159[source]
ER_UPDATE_DECIMAL_OVERFLOW = 160[source]
ER_SQL_BIND_NOT_FOUND = 161[source]
ER_ACTION_MISMATCH = 162[source]
ER_VIEW_MISSING_SQL = 163[source]
ER_FOREIGN_KEY_CONSTRAINT = 164[source]
ER_NO_SUCH_MODULE = 165[source]
ER_NO_SUCH_COLLATION = 166[source]
ER_CREATE_FK_CONSTRAINT = 167[source]
ER_DROP_FK_CONSTRAINT = 168[source]
ER_NO_SUCH_CONSTRAINT = 169[source]
ER_CONSTRAINT_EXISTS = 170[source]
ER_SQL_TYPE_MISMATCH = 171[source]
ER_ROWID_OVERFLOW = 172[source]
ER_DROP_COLLATION = 173[source]
ER_ILLEGAL_COLLATION_MIX = 174[source]
ER_SQL_NO_SUCH_PRAGMA = 175[source]
ER_SQL_CANT_RESOLVE_FIELD = 176[source]
ER_INDEX_EXISTS_IN_SPACE = 177[source]
ER_INCONSISTENT_TYPES = 178[source]
ER_SQL_SYNTAX_WITH_POS = 179[source]
ER_SQL_STACK_OVERFLOW = 180[source]
ER_SQL_SELECT_WILDCARD = 181[source]
ER_SQL_STATEMENT_EMPTY = 182[source]
ER_SQL_KEYWORD_IS_RESERVED = 183[source]
ER_SQL_SYNTAX_NEAR_TOKEN = 184[source]
ER_SQL_UNKNOWN_TOKEN = 185[source]
ER_SQL_PARSER_GENERIC = 186[source]
ER_SQL_ANALYZE_ARGUMENT = 187[source]
ER_SQL_COLUMN_COUNT_MAX = 188[source]
ER_HEX_LITERAL_MAX = 189[source]
ER_INT_LITERAL_MAX = 190[source]
ER_SQL_PARSER_LIMIT = 191[source]
ER_INDEX_DEF_UNSUPPORTED = 192[source]
ER_CK_DEF_UNSUPPORTED = 193[source]
ER_MULTIKEY_INDEX_MISMATCH = 194[source]
ER_CREATE_CK_CONSTRAINT = 195[source]
ER_CK_CONSTRAINT_FAILED = 196[source]
ER_SQL_COLUMN_COUNT = 197[source]
ER_FUNC_INDEX_FUNC = 198[source]
ER_FUNC_INDEX_FORMAT = 199[source]
ER_FUNC_INDEX_PARTS = 200[source]
ER_NO_SUCH_FIELD_NAME = 201[source]
ER_FUNC_WRONG_ARG_COUNT = 202[source]
ER_BOOTSTRAP_READONLY = 203[source]
ER_SQL_FUNC_WRONG_RET_COUNT = 204[source]
ER_FUNC_INVALID_RETURN_TYPE = 205[source]
ER_SQL_PARSER_GENERIC_WITH_POS = 206[source]
ER_REPLICA_NOT_ANON = 207[source]
ER_CANNOT_REGISTER = 208[source]
ER_SESSION_SETTING_INVALID_VALUE = 209[source]
ER_SQL_PREPARE = 210[source]
ER_WRONG_QUERY_ID = 211[source]
ER_SEQUENCE_NOT_STARTED = 212[source]
ER_NO_SUCH_SESSION_SETTING = 213[source]
ER_UNCOMMITTED_FOREIGN_SYNC_TXNS = 214[source]
ER_SYNC_MASTER_MISMATCH = 215[source]
ER_SYNC_QUORUM_TIMEOUT = 216[source]
ER_SYNC_ROLLBACK = 217[source]
ER_TUPLE_METADATA_IS_TOO_BIG = 218[source]
ER_XLOG_GAP = 219[source]
ER_TOO_EARLY_SUBSCRIBE = 220[source]
ER_SQL_CANT_ADD_AUTOINC = 221[source]
ER_QUORUM_WAIT = 222[source]
ER_INTERFERING_PROMOTE = 223[source]
ER_ELECTION_DISABLED = 224[source]
ER_TXN_ROLLBACK = 225[source]
ER_NOT_LEADER = 226[source]
ER_SYNC_QUEUE_UNCLAIMED = 227[source]
ER_SYNC_QUEUE_FOREIGN = 228[source]
ER_UNABLE_TO_PROCESS_IN_STREAM = 229[source]
ER_UNABLE_TO_PROCESS_OUT_OF_STREAM = 230[source]
ER_TRANSACTION_TIMEOUT = 231[source]
ER_ACTIVE_TIMER = 232[source]
ER_TUPLE_FIELD_COUNT_LIMIT = 233[source]
ER_CREATE_CONSTRAINT = 234[source]
ER_FIELD_CONSTRAINT_FAILED = 235[source]
ER_TUPLE_CONSTRAINT_FAILED = 236[source]
ER_CREATE_FOREIGN_KEY = 237[source]
ER_FOREIGN_KEY_INTEGRITY = 238[source]
ER_FIELD_FOREIGN_KEY_FAILED = 239[source]
ER_COMPLEX_FOREIGN_KEY_FAILED = 240[source]
ER_WRONG_SPACE_UPGRADE_OPTIONS = 241[source]
ER_NO_ELECTION_QUORUM = 242[source]
ER_SSL = 243[source]
ER_SPLIT_BRAIN = 244[source]