Struct tendermint::error::Error
source[−]pub struct Error(pub ErrorDetail, pub DefaultTracer);
Tuple Fields
0: ErrorDetail
1: DefaultTracer
Implementations
pub fn add_trace<E: Display>(self, message: &E) -> Self where
DefaultTracer: ErrorMessageTracer,
pub fn trace_from<E, Cont>(source: E::Source, cont: Cont) -> Self where
E: ErrorSource<DefaultTracer>,
DefaultTracer: ErrorMessageTracer,
Cont: FnOnce(E::Detail) -> ErrorDetail,
pub fn parse_int(
data: String,
source: AsErrorSource<DisplayOnly<ParseIntError>, DefaultTracer>
) -> Error
pub fn negative_height(
source: AsErrorSource<DisplayOnly<TryFromIntError>, DefaultTracer>
) -> Error
pub fn negative_round(
source: AsErrorSource<DisplayOnly<TryFromIntError>, DefaultTracer>
) -> Error
pub fn negative_validator_index(
source: AsErrorSource<DisplayOnly<TryFromIntError>, DefaultTracer>
) -> Error
pub fn integer_overflow(
source: AsErrorSource<DisplayOnly<TryFromIntError>, DefaultTracer>
) -> Error
pub fn negative_power(
source: AsErrorSource<DisplayOnly<TryFromIntError>, DefaultTracer>
) -> Error
pub fn negative_max_age_num(
source: AsErrorSource<DisplayOnly<TryFromIntError>, DefaultTracer>
) -> Error
Trait Implementations
impl Error for Error where
ErrorDetail: Display,
DefaultTracer: Debug + Display,
DefaultTracer: ErrorMessageTracer,
impl Error for Error where
ErrorDetail: Display,
DefaultTracer: Debug + Display,
DefaultTracer: ErrorMessageTracer,
type Source = Self
type Source = Self
The type of the error source.
type Detail = ErrorDetail
type Detail = ErrorDetail
The type of the error detail that can be extracted from the error source
Extracts the error details out from the error source, together with an optional error trace. Read more
Performs the conversion.