Enum autopush_common::db::bigtable::BigTableError
source · pub enum BigTableError {
InvalidRowResponse(Error),
InvalidChunk(String),
Read(Error),
WriteTime(SystemTimeError),
Write(Error),
GRPC(Error),
Status(MutateRowStatus, String),
Admin(String, Option<String>),
Pool(Box<PoolError<BigTableError>>),
PoolTimeout(TimeoutType),
Config(String),
}
Variants§
InvalidRowResponse(Error)
InvalidChunk(String)
Read(Error)
WriteTime(SystemTimeError)
Write(Error)
GRPC(Error)
Status(MutateRowStatus, String)
Return a GRPC status code and any message. See https://grpc.github.io/grpc/core/md_doc_statuscodes.html
Admin(String, Option<String>)
Pool(Box<PoolError<BigTableError>>)
General Pool errors
PoolTimeout(TimeoutType)
Timeout occurred while getting a pooled connection
Config(String)
Implementations§
source§impl BigTableError
impl BigTableError
pub fn status(&self) -> StatusCode
Trait Implementations§
source§impl Debug for BigTableError
impl Debug for BigTableError
source§impl Display for BigTableError
impl Display for BigTableError
source§impl Error for BigTableError
impl Error for BigTableError
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 BigTableError
impl ReportableError for BigTableError
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
Experimental: return tag key value pairs for metrics and Sentry
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 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.
Auto Trait Implementations§
impl Freeze for BigTableError
impl !RefUnwindSafe for BigTableError
impl Send for BigTableError
impl Sync for BigTableError
impl Unpin for BigTableError
impl !UnwindSafe for BigTableError
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