pub enum ScyllaDBError {
Show 19 variants
ConfigurationError(String),
NewSessionError(NewSessionError),
UseKeyspaceError(UseKeyspaceError),
PrepareError(PrepareError),
IntoRowsResultError(IntoRowsResultError),
RowsError(RowsError),
TypeCheckError(TypeCheckError),
SerializationError(SerializationError),
DeserializationError(DeserializationError),
ExecutionError(ExecutionError),
PagerExecutionError(PagerExecutionError),
TransactionNotStarted,
ColumnIndexOutOfBounds {
index: usize,
len: usize,
},
ColumnTypeError {
expect: ColumnType<'static>,
actual: ColumnType<'static>,
},
MigrationLockError,
MismatchedColumnTypeError(UStr, ColumnType<'static>),
ColumnTypeNotSupportedError(ColumnType<'static>),
NullValueError(UStr),
ExclusiveLockError,
}
Expand description
Represents all the ways a method can fail within ScyllaDB.
Variants§
ConfigurationError(String)
There is an error in the options.
NewSessionError(NewSessionError)
Error occurred while creating the session.
UseKeyspaceError(UseKeyspaceError)
There is an error in the specified keyspace.
PrepareError(PrepareError)
Error occurred while preparing the statement.
IntoRowsResultError(IntoRowsResultError)
Error occurred while converting to rows result.
RowsError(RowsError)
Error occurred while retrieving the row.
TypeCheckError(TypeCheckError)
Error occurred while type checking.
SerializationError(SerializationError)
Error occurred while serialization.
DeserializationError(DeserializationError)
Error occurred while deserialization.
ExecutionError(ExecutionError)
Error occurred while execution.
PagerExecutionError(PagerExecutionError)
Error occurred while pagination.
TransactionNotStarted
Transaction is not started.
ColumnIndexOutOfBounds
Attempted to retrieve data exceeding the number of columns.
ColumnTypeError
Column types do not match.
Fields
expect: ColumnType<'static>
expected column type.
actual: ColumnType<'static>
actual column type.
MigrationLockError
Failed to acquire migration lock.
MismatchedColumnTypeError(UStr, ColumnType<'static>)
Column types do not match.
ColumnTypeNotSupportedError(ColumnType<'static>)
This column type is not supported.
NullValueError(UStr)
The value is null.
ExclusiveLockError
Failed to acquire exclusive lock.
Trait Implementations§
Source§impl DatabaseError for ScyllaDBError
impl DatabaseError for ScyllaDBError
Source§fn constraint(&self) -> Option<&str>
fn constraint(&self) -> Option<&str>
Source§fn table(&self) -> Option<&str>
fn table(&self) -> Option<&str>
Source§fn is_unique_violation(&self) -> bool
fn is_unique_violation(&self) -> bool
Source§fn is_foreign_key_violation(&self) -> bool
fn is_foreign_key_violation(&self) -> bool
Source§fn is_check_violation(&self) -> bool
fn is_check_violation(&self) -> bool
Source§impl Debug for ScyllaDBError
impl Debug for ScyllaDBError
Source§impl Display for ScyllaDBError
impl Display for ScyllaDBError
Source§impl Error for ScyllaDBError
impl Error for ScyllaDBError
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
Source§impl From<DeserializationError> for ScyllaDBError
impl From<DeserializationError> for ScyllaDBError
Source§fn from(source: DeserializationError) -> Self
fn from(source: DeserializationError) -> Self
Source§impl From<ExecutionError> for ScyllaDBError
impl From<ExecutionError> for ScyllaDBError
Source§fn from(source: ExecutionError) -> Self
fn from(source: ExecutionError) -> Self
Source§impl From<IntoRowsResultError> for ScyllaDBError
impl From<IntoRowsResultError> for ScyllaDBError
Source§fn from(source: IntoRowsResultError) -> Self
fn from(source: IntoRowsResultError) -> Self
Source§impl From<NewSessionError> for ScyllaDBError
impl From<NewSessionError> for ScyllaDBError
Source§fn from(source: NewSessionError) -> Self
fn from(source: NewSessionError) -> Self
Source§impl From<PagerExecutionError> for ScyllaDBError
impl From<PagerExecutionError> for ScyllaDBError
Source§fn from(source: PagerExecutionError) -> Self
fn from(source: PagerExecutionError) -> Self
Source§impl From<PrepareError> for ScyllaDBError
impl From<PrepareError> for ScyllaDBError
Source§fn from(source: PrepareError) -> Self
fn from(source: PrepareError) -> Self
Source§impl From<RowsError> for ScyllaDBError
impl From<RowsError> for ScyllaDBError
Source§impl From<SerializationError> for ScyllaDBError
impl From<SerializationError> for ScyllaDBError
Source§fn from(source: SerializationError) -> Self
fn from(source: SerializationError) -> Self
Source§impl From<TypeCheckError> for ScyllaDBError
impl From<TypeCheckError> for ScyllaDBError
Source§fn from(source: TypeCheckError) -> Self
fn from(source: TypeCheckError) -> Self
Source§impl From<UseKeyspaceError> for ScyllaDBError
impl From<UseKeyspaceError> for ScyllaDBError
Source§fn from(source: UseKeyspaceError) -> Self
fn from(source: UseKeyspaceError) -> Self
Auto Trait Implementations§
impl !Freeze for ScyllaDBError
impl !RefUnwindSafe for ScyllaDBError
impl Send for ScyllaDBError
impl Sync for ScyllaDBError
impl Unpin for ScyllaDBError
impl !UnwindSafe for ScyllaDBError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more