pub enum TableError {
FileError(RealmFileError),
TableNotFound {
name: String,
},
ColumnNotFound {
name: String,
},
ColumnNotIndexed {
name: String,
},
}
Expand description
Errors that occur while reading a table, such as invalid column names or missing columns.
Variants§
FileError(RealmFileError)
A file error occurred. See RealmFileError
.
TableNotFound
Tried to access a table that does not exist.
ColumnNotFound
Tried to access a column that does not exist.
ColumnNotIndexed
Tried to query a column (using
find_row_from_indexed_column
or
find_row_number_from_indexed_column
),
but the column is not indexed.
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)>
Returns 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<RealmFileError> for TableError
impl From<RealmFileError> for TableError
Source§fn from(source: RealmFileError) -> Self
fn from(source: RealmFileError) -> 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