Enum scylla::transport::errors::DbError [−][src]
pub enum DbError {
Show 19 variants
SyntaxError,
Invalid,
AlreadyExists {
keyspace: String,
table: String,
},
FunctionFailure {
keyspace: String,
function: String,
arg_types: Vec<String>,
},
AuthenticationError,
Unauthorized,
ConfigError,
Unavailable {
consistency: Consistency,
required: i32,
alive: i32,
},
Overloaded,
IsBootstrapping,
TruncateError,
ReadTimeout {
consistency: Consistency,
received: i32,
required: i32,
data_present: bool,
},
WriteTimeout {
consistency: Consistency,
received: i32,
required: i32,
write_type: WriteType,
},
ReadFailure {
consistency: Consistency,
received: i32,
required: i32,
numfailures: i32,
data_present: bool,
},
WriteFailure {
consistency: Consistency,
received: i32,
required: i32,
numfailures: i32,
write_type: WriteType,
},
Unprepared,
ServerError,
ProtocolError,
Other(i32),
}
Expand description
An error sent from the database in response to a query as described in the specification
Variants
The submitted query has a syntax error
The query is syntatically correct but invalid
Attempted to create a keyspace or a table that was already existing
Fields of AlreadyExists
User defined function failed during execution
Fields of FunctionFailure
Authentication failed - bad credentials
The logged user doesn’t have the right to perform the query
The query is invalid because of some configuration issue
Not enough nodes are alive to satisfy required consistency level
The request cannot be processed because the coordinator node is overloaded
The coordinator node is still bootstrapping
Error during truncate operation
Not enough nodes responded to the read request in time to satisfy required consistency level
Fields of ReadTimeout
consistency: Consistency
Consistency level of the query
received: i32
Number of nodes that responded to the read request
required: i32
Number of nodes required to respond to satisfy required consistency level
data_present: bool
Replica that was asked for data has responded
Not enough nodes responded to the write request in time to satisfy required consistency level
Fields of WriteTimeout
consistency: Consistency
Consistency level of the query
received: i32
Number of nodes that responded to the write request
required: i32
Number of nodes required to respond to satisfy required consistency level
write_type: WriteType
Type of write operation requested
A non-timeout error during a read request
Fields of ReadFailure
consistency: Consistency
Consistency level of the query
received: i32
Number of nodes that responded to the read request
required: i32
Number of nodes required to respond to satisfy required consistency level
numfailures: i32
Number of nodes that experience a failure while executing the request
data_present: bool
Replica that was asked for data has responded
A non-timeout error during a write request
Fields of WriteFailure
consistency: Consistency
Consistency level of the query
received: i32
Number of ndoes that responded to the read request
required: i32
Number of nodes required to respond to satisfy required consistency level
numfailures: i32
Number of nodes that experience a failure while executing the request
write_type: WriteType
Type of write operation requested
Tried to execute a prepared statement that is not prepared. Driver shoud prepare it again
Internal server error. This indicates a server-side bug
Invalid protocol message received from the driver
Other(i32)
Other error code not specified in the specification
Tuple Fields of Other
0: i32
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DbError
impl UnwindSafe for DbError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more