pub enum Error {
ParseDateStr {
raw: String,
error: ParseError,
},
InvalidDateStr {
raw: String,
location: Location,
},
ParseTimestamp {
raw: String,
location: Location,
},
TimestampOverflow {
error: TryFromIntError,
location: Location,
},
ArithmeticOverflow {
msg: String,
location: Location,
},
InvalidTimezoneOffset {
hours: i32,
minutes: u32,
location: Location,
},
ParseOffsetStr {
raw: String,
error: ParseIntError,
location: Location,
},
ParseTimezoneName {
raw: String,
location: Location,
},
Format {
pattern: String,
error: Error,
location: Location,
},
ParseDuration {
error: DurationError,
location: Location,
},
InvalidDatabaseTtl {
location: Location,
},
}
Variants§
ParseDateStr
InvalidDateStr
ParseTimestamp
TimestampOverflow
ArithmeticOverflow
InvalidTimezoneOffset
ParseOffsetStr
ParseTimezoneName
Format
ParseDuration
InvalidDatabaseTtl
Fields
§
location: Location
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl ErrorCompat for Error
impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moresource§impl ErrorExt for Error
impl ErrorExt for Error
source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Map this error to StatusCode.
source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Returns the error as Any so that it can be
downcast to a specific implementation.
fn output_msg(&self) -> Stringwhere
Self: Sized,
source§impl<__T0> IntoError<Error> for ArithmeticOverflowSnafu<__T0>
impl<__T0> IntoError<Error> for ArithmeticOverflowSnafu<__T0>
source§impl<__T0> IntoError<Error> for FormatSnafu<__T0>
impl<__T0> IntoError<Error> for FormatSnafu<__T0>
source§impl IntoError<Error> for InvalidDatabaseTtlSnafu
impl IntoError<Error> for InvalidDatabaseTtlSnafu
source§impl<__T0> IntoError<Error> for InvalidDateStrSnafu<__T0>
impl<__T0> IntoError<Error> for InvalidDateStrSnafu<__T0>
source§impl<__T0, __T1> IntoError<Error> for InvalidTimezoneOffsetSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for InvalidTimezoneOffsetSnafu<__T0, __T1>
source§impl<__T0> IntoError<Error> for ParseDateStrSnafu<__T0>
impl<__T0> IntoError<Error> for ParseDateStrSnafu<__T0>
source§type Source = ParseError
type Source = ParseError
The underlying error
source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
source§impl IntoError<Error> for ParseDurationSnafu
impl IntoError<Error> for ParseDurationSnafu
source§impl<__T0> IntoError<Error> for ParseOffsetStrSnafu<__T0>
impl<__T0> IntoError<Error> for ParseOffsetStrSnafu<__T0>
source§type Source = ParseIntError
type Source = ParseIntError
The underlying error
source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
source§impl<__T0> IntoError<Error> for ParseTimestampSnafu<__T0>
impl<__T0> IntoError<Error> for ParseTimestampSnafu<__T0>
source§impl<__T0> IntoError<Error> for ParseTimezoneNameSnafu<__T0>
impl<__T0> IntoError<Error> for ParseTimezoneNameSnafu<__T0>
source§impl IntoError<Error> for TimestampOverflowSnafu
impl IntoError<Error> for TimestampOverflowSnafu
source§type Source = TryFromIntError
type Source = TryFromIntError
The underlying error
source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request