Enum spacetimedb::error::TableError
source · pub enum TableError {
Show 14 variants
System(Box<str>),
Exist(String),
NotFound(String),
IdNotFound(SystemTable, u32),
IdNotFoundState(TableId),
ColumnWithoutName(String, ColId),
InvalidSchema(TableId, LibError),
RowInvalidType {
table_id: TableId,
row: ProductValue,
},
RowDecodeError(DecodeError),
DuplicateColumnName(String),
ColumnNotFound(ColId),
DecodeField {
table: String,
field: Box<str>,
expect: String,
found: String,
},
Insert(InsertError),
ReadColTypeError(TypeError),
}Variants§
System(Box<str>)
Exist(String)
NotFound(String)
IdNotFound(SystemTable, u32)
IdNotFoundState(TableId)
ColumnWithoutName(String, ColId)
InvalidSchema(TableId, LibError)
RowInvalidType
RowDecodeError(DecodeError)
DuplicateColumnName(String)
ColumnNotFound(ColId)
DecodeField
Insert(InsertError)
ReadColTypeError(TypeError)
Trait Implementations§
source§impl Debug for TableError
impl Debug for TableError
source§impl Display for TableError
impl Display for TableError
source§impl Error for TableError
impl Error for TableError
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<InsertError> for TableError
impl From<InsertError> for TableError
source§fn from(source: InsertError) -> Self
fn from(source: InsertError) -> 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 TableError
impl RefUnwindSafe for TableError
impl Send for TableError
impl Sync for TableError
impl Unpin for TableError
impl UnwindSafe for TableError
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