pub enum IcDbmsError {
Acl(AclError),
Dbms(DbmsError),
Sql(SqlError),
}Expand description
Error returned by every endpoint of an ic-dbms canister.
Engine errors are wrapped in IcDbmsError::Dbms; access control
failures, which the engine knows nothing about, are
IcDbmsError::Acl. With the sql feature, errors raised while
parsing, planning or running a SQL statement are IcDbmsError::Sql.
Variants§
Acl(AclError)
The canister access control list refused the call.
Dbms(DbmsError)
The database engine reported an error.
Sql(SqlError)
Available on crate feature
sql only.The SQL front-end rejected or failed to run a statement.
Trait Implementations§
Source§impl CandidType for IcDbmsError
impl CandidType for IcDbmsError
Source§impl Debug for IcDbmsError
impl Debug for IcDbmsError
Source§impl<'de> Deserialize<'de> for IcDbmsError
impl<'de> Deserialize<'de> for IcDbmsError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for IcDbmsError
impl Display for IcDbmsError
Source§impl Error for IcDbmsError
impl Error for IcDbmsError
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<AclError> for IcDbmsError
impl From<AclError> for IcDbmsError
Source§impl From<DbmsError> for IcDbmsError
impl From<DbmsError> for IcDbmsError
Source§impl From<MemoryError> for IcDbmsError
impl From<MemoryError> for IcDbmsError
Source§fn from(error: MemoryError) -> Self
fn from(error: MemoryError) -> Self
Converts to this type from the input type.
Source§impl From<MigrationError> for IcDbmsError
impl From<MigrationError> for IcDbmsError
Source§fn from(error: MigrationError) -> Self
fn from(error: MigrationError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for IcDbmsError
impl From<QueryError> for IcDbmsError
Source§fn from(error: QueryError) -> Self
fn from(error: QueryError) -> Self
Converts to this type from the input type.
Source§impl From<SqlError> for IcDbmsError
impl From<SqlError> for IcDbmsError
Source§impl From<TableError> for IcDbmsError
impl From<TableError> for IcDbmsError
Source§fn from(error: TableError) -> Self
fn from(error: TableError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for IcDbmsError
impl From<TransactionError> for IcDbmsError
Source§fn from(error: TransactionError) -> Self
fn from(error: TransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IcDbmsError
impl RefUnwindSafe for IcDbmsError
impl Send for IcDbmsError
impl Sync for IcDbmsError
impl Unpin for IcDbmsError
impl UnsafeUnpin for IcDbmsError
impl UnwindSafe for IcDbmsError
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