pub enum FdbBindingError {
NonRetryableFdbError(FdbError),
HcaError(HcaError),
DirectoryError(DirectoryError),
PackError(PackError),
ReferenceToTransactionKept,
CustomError(Box<dyn Error + Send + Sync>),
}
Expand description
This error represent all errors that can be throwed by db.run
.
Layer developers may use the CustomError
.
Variants§
NonRetryableFdbError(FdbError)
HcaError(HcaError)
DirectoryError(DirectoryError)
PackError(PackError)
ReferenceToTransactionKept
A reference to the RetryableTransaction
has been kept
CustomError(Box<dyn Error + Send + Sync>)
A custom error that layer developers can use
Implementations§
Source§impl FdbBindingError
impl FdbBindingError
Sourcepub fn get_fdb_error(&self) -> Option<FdbError>
pub fn get_fdb_error(&self) -> Option<FdbError>
Returns the underlying FdbError
, if any.
Trait Implementations§
Source§impl Debug for FdbBindingError
impl Debug for FdbBindingError
Source§impl Display for FdbBindingError
impl Display for FdbBindingError
Source§impl Error for FdbBindingError
impl Error for FdbBindingError
1.30.0 · 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<DirectoryError> for FdbBindingError
impl From<DirectoryError> for FdbBindingError
Source§fn from(e: DirectoryError) -> Self
fn from(e: DirectoryError) -> Self
Converts to this type from the input type.
Source§impl From<FdbError> for FdbBindingError
impl From<FdbError> for FdbBindingError
Auto Trait Implementations§
impl Freeze for FdbBindingError
impl !RefUnwindSafe for FdbBindingError
impl Send for FdbBindingError
impl Sync for FdbBindingError
impl Unpin for FdbBindingError
impl !UnwindSafe for FdbBindingError
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