pub enum DbError {
Serialization(String),
DeserializeU64(String),
DeserializeString(String),
TableStatusUnknown,
BTError(BigTableError),
ConnectionError(String),
Conditional,
Integrity(String, Option<String>),
General(String),
Backoff(String),
}
Variants§
Serialization(String)
DeserializeU64(String)
DeserializeString(String)
TableStatusUnknown
BTError(BigTableError)
ConnectionError(String)
Conditional
Integrity(String, Option<String>)
General(String)
Backoff(String)
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)>
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<BigTableError> for DbError
impl From<BigTableError> for DbError
source§fn from(source: BigTableError) -> Self
fn from(source: BigTableError) -> Self
Converts to this type from the input type.
source§impl ReportableError for DbError
impl ReportableError for DbError
source§fn reportable_source(&self) -> Option<&(dyn ReportableError + 'static)>
fn reportable_source(&self) -> Option<&(dyn ReportableError + 'static)>
Like [Error::source] but returns the source (if any) of this error as a
ReportableError if it implements the trait. Otherwise callers of this
method will likely subsequently call [Error::source] to return the
source (if any) as the parent [Error] trait.
source§fn is_sentry_event(&self) -> bool
fn is_sentry_event(&self) -> bool
Whether this error is reported to Sentry
source§fn metric_label(&self) -> Option<&'static str>
fn metric_label(&self) -> Option<&'static str>
Errors that don’t emit Sentry events (!is_sentry_event()) emit an
increment metric instead with this label
source§fn extras(&self) -> Vec<(&str, String)>
fn extras(&self) -> Vec<(&str, String)>
Experimental: return key value pairs for Sentry Event’s extra data
TODO: should probably return Vec<(&str, Value)> or Vec<(String, Value)>
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Return a
Backtrace
for this Error if one was capturedExperimental: return tag key value pairs for metrics and Sentry
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§
§impl<T> AnySync for T
impl<T> AnySync for T
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