pub enum Error {
Show 28 variants
Io(Error),
Serialization {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
Corruption(String),
Schema(String),
CqlParse(String),
InvalidFormat(String),
UnsupportedFormat(String),
Timeout(String),
InvalidPath(String),
InvalidState(String),
QueryExecution(String),
TypeConversion(String),
Configuration(String),
Storage(String),
Memory(String),
Concurrency(String),
NotFound(String),
Table(String),
AlreadyExists(String),
InvalidOperation(String),
ConstraintViolation(String),
Transaction(String),
Index(String),
Compaction(String),
Internal(String),
Parse(String),
InvalidInput(String),
UnsupportedQuery(String),
}Expand description
Main error type for CQLite operations
Variants§
Io(Error)
I/O related errors
Serialization
Serialization/deserialization errors
Corruption(String)
Data corruption errors
Schema(String)
Schema validation errors
CqlParse(String)
CQL parsing errors
InvalidFormat(String)
Invalid format error (for SSTable parsing)
UnsupportedFormat(String)
Unsupported format error
Timeout(String)
Timeout error
InvalidPath(String)
Invalid path error
InvalidState(String)
Invalid state error
QueryExecution(String)
Query execution errors
TypeConversion(String)
Type conversion errors
Configuration(String)
Configuration errors
Storage(String)
Storage engine errors
Memory(String)
Memory management errors
Concurrency(String)
Lock/concurrency errors
NotFound(String)
Resource not found
Table(String)
Table errors
AlreadyExists(String)
Resource already exists
InvalidOperation(String)
Invalid operation
ConstraintViolation(String)
Constraint violation
Transaction(String)
Transaction errors
Index(String)
Index errors
Compaction(String)
Compaction errors
Internal(String)
Generic internal error
Parse(String)
Parse error
InvalidInput(String)
Invalid input error
UnsupportedQuery(String)
Unsupported query error
Implementations§
Source§impl Error
impl Error
Sourcepub fn serialization(msg: impl Into<String>) -> Self
pub fn serialization(msg: impl Into<String>) -> Self
Create a serialization error
Sourcepub fn corruption(msg: impl Into<String>) -> Self
pub fn corruption(msg: impl Into<String>) -> Self
Create a corruption error
Sourcepub fn invalid_format(msg: impl Into<String>) -> Self
pub fn invalid_format(msg: impl Into<String>) -> Self
Create an invalid format error
Sourcepub fn unsupported_format(msg: impl Into<String>) -> Self
pub fn unsupported_format(msg: impl Into<String>) -> Self
Create an unsupported format error
Sourcepub fn invalid_path(msg: impl Into<String>) -> Self
pub fn invalid_path(msg: impl Into<String>) -> Self
Create an invalid path error
Sourcepub fn invalid_state(msg: impl Into<String>) -> Self
pub fn invalid_state(msg: impl Into<String>) -> Self
Create an invalid state error
Sourcepub fn query_execution(msg: impl Into<String>) -> Self
pub fn query_execution(msg: impl Into<String>) -> Self
Create a query execution error
Sourcepub fn type_conversion(msg: impl Into<String>) -> Self
pub fn type_conversion(msg: impl Into<String>) -> Self
Create a type conversion error
Sourcepub fn configuration(msg: impl Into<String>) -> Self
pub fn configuration(msg: impl Into<String>) -> Self
Create a configuration error
Sourcepub fn concurrency(msg: impl Into<String>) -> Self
pub fn concurrency(msg: impl Into<String>) -> Self
Create a concurrency error
Sourcepub fn already_exists(msg: impl Into<String>) -> Self
pub fn already_exists(msg: impl Into<String>) -> Self
Create an already exists error
Sourcepub fn invalid_operation(msg: impl Into<String>) -> Self
pub fn invalid_operation(msg: impl Into<String>) -> Self
Create an invalid operation error
Sourcepub fn constraint_violation(msg: impl Into<String>) -> Self
pub fn constraint_violation(msg: impl Into<String>) -> Self
Create a constraint violation error
Sourcepub fn transaction(msg: impl Into<String>) -> Self
pub fn transaction(msg: impl Into<String>) -> Self
Create a transaction error
Sourcepub fn compaction(msg: impl Into<String>) -> Self
pub fn compaction(msg: impl Into<String>) -> Self
Create a compaction error
Sourcepub fn invalid_input(msg: impl Into<String>) -> Self
pub fn invalid_input(msg: impl Into<String>) -> Self
Create an invalid input error
Sourcepub fn unsupported_query(msg: impl Into<String>) -> Self
pub fn unsupported_query(msg: impl Into<String>) -> Self
Create an unsupported query error
Sourcepub fn table_not_found(msg: impl Into<String>) -> Self
pub fn table_not_found(msg: impl Into<String>) -> Self
Create a table not found error
Sourcepub fn ambiguous_table(msg: impl Into<String>) -> Self
pub fn ambiguous_table(msg: impl Into<String>) -> Self
Create an ambiguous table error
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Check if this error is recoverable
Sourcepub fn category(&self) -> ErrorCategory
pub fn category(&self) -> ErrorCategory
Get the error category
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()