Enum spacetimedb::error::DBError
source · pub enum DBError {
Show 21 variants
Lib(LibError),
Buffer(DecodeError),
Table(TableError),
Sequence2(SequenceError),
Index(IndexError),
Schema(SchemaErrors),
IoError(Error),
ParseInt(ParseIntError),
DecodeHexHash(usize),
DecodeHex(FromHexError),
Database(DatabaseError),
SledDbError(Error),
MessageLogPoisoned(String),
Vm(ErrorVm),
VmUser(ErrorLang),
Subscription(SubscriptionError),
Client(ClientError),
SqlParser {
sql: String,
error: ParserError,
},
Plan {
sql: String,
error: PlanError,
},
LogReplay(LogReplayError),
Other(Error),
}Variants§
Lib(LibError)
Buffer(DecodeError)
Table(TableError)
Sequence2(SequenceError)
Index(IndexError)
Schema(SchemaErrors)
IoError(Error)
ParseInt(ParseIntError)
DecodeHexHash(usize)
DecodeHex(FromHexError)
Database(DatabaseError)
SledDbError(Error)
MessageLogPoisoned(String)
Vm(ErrorVm)
VmUser(ErrorLang)
Subscription(SubscriptionError)
Client(ClientError)
SqlParser
Plan
LogReplay(LogReplayError)
Other(Error)
Implementations§
Trait Implementations§
source§impl Error for DBError
impl Error for DBError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ClientError> for DBError
impl From<ClientError> for DBError
source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
source§impl From<DBError> for NodesError
impl From<DBError> for NodesError
source§impl From<DBError> for ReplayError
impl From<DBError> for ReplayError
source§impl From<DBError> for UpdateDatabaseError
impl From<DBError> for UpdateDatabaseError
source§impl From<DatabaseError> for DBError
impl From<DatabaseError> for DBError
source§fn from(source: DatabaseError) -> Self
fn from(source: DatabaseError) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for DBError
impl From<DecodeError> for DBError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<FromHexError> for DBError
impl From<FromHexError> for DBError
source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
source§impl From<IndexError> for DBError
impl From<IndexError> for DBError
source§fn from(source: IndexError) -> Self
fn from(source: IndexError) -> Self
Converts to this type from the input type.
source§impl From<InvalidFieldError> for DBError
impl From<InvalidFieldError> for DBError
source§fn from(value: InvalidFieldError) -> Self
fn from(value: InvalidFieldError) -> Self
Converts to this type from the input type.
source§impl From<LogReplayError> for DBError
impl From<LogReplayError> for DBError
source§fn from(source: LogReplayError) -> Self
fn from(source: LogReplayError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for DBError
impl From<ParseIntError> for DBError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
source§impl<'a, T: ?Sized + 'a> From<PoisonError<MutexGuard<'a, T>>> for DBError
impl<'a, T: ?Sized + 'a> From<PoisonError<MutexGuard<'a, T>>> for DBError
source§fn from(err: PoisonError<MutexGuard<'_, T>>) -> Self
fn from(err: PoisonError<MutexGuard<'_, T>>) -> Self
Converts to this type from the input type.
source§impl From<SequenceError> for DBError
impl From<SequenceError> for DBError
source§fn from(source: SequenceError) -> Self
fn from(source: SequenceError) -> Self
Converts to this type from the input type.
source§impl From<SubscriptionError> for DBError
impl From<SubscriptionError> for DBError
source§fn from(source: SubscriptionError) -> Self
fn from(source: SubscriptionError) -> Self
Converts to this type from the input type.
source§impl From<TableError> for DBError
impl From<TableError> for DBError
source§fn from(source: TableError) -> Self
fn from(source: TableError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DBError
impl !RefUnwindSafe for DBError
impl Send for DBError
impl Sync for DBError
impl Unpin for DBError
impl !UnwindSafe for DBError
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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