pub enum Error {
Show 41 variants ClientIdentifierConstructor { client_type: ClientType, counter: u64, validation_error: IdentifierError, }, ClientNotFound { client_id: ClientId, }, ClientFrozen { client_id: ClientId, }, ConsensusStateNotFound { client_id: ClientId, height: Height, }, ImplementationSpecific, HeaderVerificationFailure { reason: String, }, InvalidTrustThreshold { numerator: u64, denominator: u64, }, FailedTrustThresholdConversion { numerator: u64, denominator: u64, }, UnknownClientStateType { client_state_type: String, }, EmptyPrefix, UnknownConsensusStateType { consensus_state_type: String, }, UnknownHeaderType { header_type: String, }, UnknownMisbehaviourType { misbehaviour_type: String, }, MissingRawClientState, MissingRawConsensusState, InvalidMsgUpdateClientId(IdentifierError), Encode(Error), Decode(DecodeError), InvalidClientIdentifier(IdentifierError), InvalidRawHeader(Error), MissingRawHeader, MissingRawClientMessage, InvalidRawMisbehaviour(IdentifierError), MissingRawMisbehaviour, InvalidHeight, InvalidHeightResult, InvalidUpgradeClientProof(DecodeError), InvalidUpgradeConsensusStateProof(DecodeError), InvalidPacketTimestamp(ParseTimestampError), ClientArgsTypeMismatch { client_type: ClientType, }, LowHeaderHeight { header_height: Height, latest_height: Height, }, LowUpgradeHeight { upgraded_height: Height, client_height: Height, }, InvalidConsensusStateTimestamp { time1: Timestamp, time2: Timestamp, }, HeaderNotWithinTrustPeriod { latest_time: Timestamp, update_time: Timestamp, }, MissingLocalConsensusState { height: Height, }, InvalidConnectionEnd(Error), InvalidChannelEnd(Error), InvalidAnyConsensusState(Error), MisbehaviourHandlingFailure { reason: String, }, ClientSpecific { description: String, }, Other { description: String, },
}
Expand description

A catch-all error type.

Variants§

§

ClientIdentifierConstructor

Client identifier constructor failed for type {client_type} with counter {counter}, validation error: {validation_error}

Fields

§client_type: ClientType
§counter: u64
§validation_error: IdentifierError
§

ClientNotFound

client not found: {client_id}

Fields

§client_id: ClientId
§

ClientFrozen

client is frozen: {client_id}

Fields

§client_id: ClientId
§

ConsensusStateNotFound

consensus state not found at: {client_id} at height {height}

Fields

§client_id: ClientId
§height: Height
§

ImplementationSpecific

implementation specific error

§

HeaderVerificationFailure

header verification failed with reason: {reason}

Fields

§reason: String
§

InvalidTrustThreshold

failed to build trust threshold from fraction: {numerator}/{denominator}

Fields

§numerator: u64
§denominator: u64
§

FailedTrustThresholdConversion

failed to build Tendermint domain type trust threshold from fraction: {numerator}/{denominator}

Fields

§numerator: u64
§denominator: u64
§

UnknownClientStateType

unknown client state type: {client_state_type}

Fields

§client_state_type: String
§

EmptyPrefix

empty prefix

§

UnknownConsensusStateType

unknown client consensus state type: {consensus_state_type}

Fields

§consensus_state_type: String
§

UnknownHeaderType

unknown header type: {header_type}

Fields

§header_type: String
§

UnknownMisbehaviourType

unknown misbehaviour type: {misbehaviour_type}

Fields

§misbehaviour_type: String
§

MissingRawClientState

missing raw client state

§

MissingRawConsensusState

missing raw client consensus state

§

InvalidMsgUpdateClientId(IdentifierError)

invalid client id in the update client message: {0}

§

Encode(Error)

Encode error: {0}

§

Decode(DecodeError)

decode error: {0}

§

InvalidClientIdentifier(IdentifierError)

invalid client identifier error: {0}

§

InvalidRawHeader(Error)

invalid raw header error: {0}

§

MissingRawHeader

missing raw header

§

MissingRawClientMessage

missing raw client message

§

InvalidRawMisbehaviour(IdentifierError)

invalid raw misbehaviour error: {0}

§

MissingRawMisbehaviour

missing raw misbehaviour

§

InvalidHeight

revision height cannot be zero

§

InvalidHeightResult

height cannot end up zero or negative

§

InvalidUpgradeClientProof(DecodeError)

invalid proof for the upgraded client state error: {0}

§

InvalidUpgradeConsensusStateProof(DecodeError)

invalid proof for the upgraded consensus state error: {0}

§

InvalidPacketTimestamp(ParseTimestampError)

invalid packet timeout timestamp value error: {0}

§

ClientArgsTypeMismatch

mismatch between client and arguments types

Fields

§client_type: ClientType
§

LowHeaderHeight

received header height ({header_height}) is lower than (or equal to) client latest height ({latest_height})

Fields

§header_height: Height
§latest_height: Height
§

LowUpgradeHeight

upgraded client height {upgraded_height} must be at greater than current client height {client_height}

Fields

§upgraded_height: Height
§client_height: Height
§

InvalidConsensusStateTimestamp

timestamp is invalid or missing, timestamp={time1}, now={time2}

Fields

§

HeaderNotWithinTrustPeriod

header not within trusting period: expires_at={latest_time} now={update_time}

Fields

§latest_time: Timestamp
§update_time: Timestamp
§

MissingLocalConsensusState

the local consensus state could not be retrieved for height {height}

Fields

§height: Height
§

InvalidConnectionEnd(Error)

invalid connection end error: {0}

§

InvalidChannelEnd(Error)

invalid channel end error: {0}

§

InvalidAnyConsensusState(Error)

invalid any client consensus state error: {0}

§

MisbehaviourHandlingFailure

misbehaviour handling failed with reason: {reason}

Fields

§reason: String
§

ClientSpecific

client specific error: {description}

Fields

§description: String
§

Other

other error: {description}

Fields

§description: String

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

Available on crate feature std only.
source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

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§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.