Struct tendermint::error::Error
source · [−]pub struct Error(pub ErrorDetail, pub DefaultTracer);
Tuple Fields
0: ErrorDetail
1: DefaultTracer
Implementations
sourceimpl Error
impl Error
pub fn detail(&self) -> &ErrorDetail
pub fn into_detail(self) -> ErrorDetail
pub fn trace(&self) -> &DefaultTracer
pub fn into_trace(self) -> DefaultTracer
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,
sourceimpl Error
impl Error
pub fn parse_int(
data: String,
source: AsErrorSource<DisplayOnly<ParseIntError>, DefaultTracer>
) -> Error
sourceimpl Error
impl Error
pub fn date_out_of_range() -> Error
sourceimpl Error
impl Error
pub fn duration_out_of_range() -> Error
sourceimpl Error
impl Error
pub fn empty_signature() -> Error
sourceimpl Error
impl Error
pub fn invalid_message_type() -> Error
sourceimpl Error
impl Error
pub fn negative_height(
source: AsErrorSource<DisplayOnly<TryFromIntError>, DefaultTracer>
) -> Error
sourceimpl Error
impl Error
pub fn negative_round(
source: AsErrorSource<DisplayOnly<TryFromIntError>, DefaultTracer>
) -> Error
sourceimpl Error
impl Error
pub fn negative_pol_round() -> Error
sourceimpl Error
impl Error
pub fn negative_validator_index(
source: AsErrorSource<DisplayOnly<TryFromIntError>, DefaultTracer>
) -> Error
sourceimpl Error
impl Error
pub fn invalid_hash_size() -> Error
sourceimpl Error
impl Error
pub fn non_zero_timestamp() -> Error
sourceimpl Error
impl Error
pub fn invalid_account_id_length() -> Error
sourceimpl Error
impl Error
pub fn invalid_signature_id_length() -> Error
sourceimpl Error
impl Error
pub fn integer_overflow(
source: AsErrorSource<DisplayOnly<TryFromIntError>, DefaultTracer>
) -> Error
sourceimpl Error
impl Error
pub fn timestamp_nanos_out_of_range() -> Error
sourceimpl Error
impl Error
pub fn timestamp_conversion() -> Error
sourceimpl Error
impl Error
pub fn no_vote_found() -> Error
sourceimpl Error
impl Error
pub fn no_proposal_found() -> Error
sourceimpl Error
impl Error
pub fn invalid_app_hash_length() -> Error
sourceimpl Error
impl Error
pub fn missing_header() -> Error
sourceimpl Error
impl Error
pub fn missing_data() -> Error
sourceimpl Error
impl Error
pub fn missing_evidence() -> Error
sourceimpl Error
impl Error
pub fn missing_timestamp() -> Error
sourceimpl Error
impl Error
pub fn missing_version() -> Error
sourceimpl Error
impl Error
pub fn invalid_first_header() -> Error
sourceimpl Error
impl Error
pub fn invalid_validator_address() -> Error
sourceimpl Error
impl Error
pub fn invalid_signed_header() -> Error
sourceimpl Error
impl Error
pub fn invalid_evidence() -> Error
sourceimpl Error
impl Error
pub fn block_id_flag() -> Error
sourceimpl Error
impl Error
pub fn negative_power(
source: AsErrorSource<DisplayOnly<TryFromIntError>, DefaultTracer>
) -> Error
sourceimpl Error
impl Error
pub fn unsupported_key_type() -> Error
sourceimpl Error
impl Error
pub fn missing_public_key() -> Error
sourceimpl Error
impl Error
pub fn invalid_validator_params() -> Error
sourceimpl Error
impl Error
pub fn invalid_version_params() -> Error
sourceimpl Error
impl Error
pub fn negative_max_age_num(
source: AsErrorSource<DisplayOnly<TryFromIntError>, DefaultTracer>
) -> Error
sourceimpl Error
impl Error
pub fn missing_max_age_duration() -> Error
sourceimpl Error
impl Error
pub fn time_parse(
source: AsErrorSource<DisplayOnly<Parse>, DefaultTracer>
) -> Error
sourceimpl Error
impl Error
pub fn subtle_encoding(
source: AsErrorSource<DisplayOnly<Error>, DefaultTracer>
) -> Error
sourceimpl Error
impl Error
pub fn signature(
source: AsErrorSource<DisplayOnly<Error>, DefaultTracer>
) -> Error
sourceimpl Error
impl Error
pub fn trust_threshold_too_large() -> Error
sourceimpl Error
impl Error
pub fn undefined_trust_threshold() -> Error
sourceimpl Error
impl Error
pub fn trust_threshold_too_small() -> Error
Trait Implementations
sourceimpl Debug for Error where
DefaultTracer: Debug,
impl Debug for Error where
DefaultTracer: Debug,
sourceimpl Display for Error where
DefaultTracer: Debug,
impl Display for Error where
DefaultTracer: Debug,
sourceimpl Error for Error where
ErrorDetail: Display,
DefaultTracer: Debug + Display,
DefaultTracer: ErrorMessageTracer,
impl Error for Error where
ErrorDetail: Display,
DefaultTracer: Debug + Display,
DefaultTracer: ErrorMessageTracer,
sourcefn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl ErrorSource<Report> for Error
impl ErrorSource<Report> for Error
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
sourcefn error_details(Error: Self) -> (ErrorDetail, Option<DefaultTracer>)
fn error_details(Error: Self) -> (ErrorDetail, Option<DefaultTracer>)
Extracts the error details out from the error source, together with an optional error trace. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more