pub enum ClientError {
Show 42 variants Upgrade(UpgradeClientError), ClientIdentifierConstructor { client_type: ClientType, counter: u64, validation_error: IdentifierError, }, ClientFrozen { description: String, }, ClientNotActive { status: Status, }, ClientStateNotFound { client_id: ClientId, }, ClientStateAlreadyExists { client_id: ClientId, }, ConsensusStateNotFound { client_id: ClientId, height: Height, }, ProcessedTimeNotFound { client_id: ClientId, height: Height, }, ProcessedHeightNotFound { client_id: ClientId, height: Height, }, 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(EncodeError), Decode(DecodeError), InvalidClientIdentifier(IdentifierError), InvalidRawHeader { reason: String, }, MissingClientMessage, InvalidRawMisbehaviour(IdentifierError), MissingRawMisbehaviour, InvalidHeight, InvalidHeightResult, InvalidProofHeight { latest_height: Height, proof_height: Height, }, InvalidCommitmentProof(CommitmentError), InvalidPacketTimestamp(ParseTimestampError), ClientArgsTypeMismatch { client_type: ClientType, }, LowHeaderHeight { header_height: Height, latest_height: Height, }, InvalidConsensusStateTimestamp { time1: Timestamp, time2: Timestamp, }, MissingLocalConsensusState { height: Height, }, InvalidSigner { reason: String, }, Ics23Verification(CommitmentError), MisbehaviourHandlingFailure { reason: String, }, ClientSpecific { description: String, }, CounterOverflow, Other { description: String, },
}
Expand description

Encodes all the possible client errors

Variants§

§

Upgrade(UpgradeClientError)

upgrade client error: {0}

§

ClientIdentifierConstructor

Fields

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

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

§

ClientFrozen

Fields

§description: String

client is frozen with description: {description}

§

ClientNotActive

Fields

§status: Status

client is not active. Status={status}

§

ClientStateNotFound

Fields

§client_id: ClientId

client state not found: {client_id}

§

ClientStateAlreadyExists

Fields

§client_id: ClientId

client state already exists: {client_id}

§

ConsensusStateNotFound

Fields

§client_id: ClientId
§height: Height

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

§

ProcessedTimeNotFound

Fields

§client_id: ClientId
§height: Height

Processed time for the client {client_id} at height {height} not found

§

ProcessedHeightNotFound

Fields

§client_id: ClientId
§height: Height

Processed height for the client {client_id} at height {height} not found

§

HeaderVerificationFailure

Fields

§reason: String

header verification failed with reason: {reason}

§

InvalidTrustThreshold

Fields

§numerator: u64
§denominator: u64

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

§

FailedTrustThresholdConversion

Fields

§numerator: u64
§denominator: u64

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

§

UnknownClientStateType

Fields

§client_state_type: String

unknown client state type: {client_state_type}

§

EmptyPrefix

empty prefix

§

UnknownConsensusStateType

Fields

§consensus_state_type: String

unknown client consensus state type: {consensus_state_type}

§

UnknownHeaderType

Fields

§header_type: String

unknown header type: {header_type}

§

UnknownMisbehaviourType

Fields

§misbehaviour_type: String

unknown misbehaviour type: {misbehaviour_type}

§

MissingRawClientState

missing raw client state

§

MissingRawConsensusState

missing raw client consensus state

§

InvalidMsgUpdateClientId(IdentifierError)

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

§

Encode(EncodeError)

encode error: {0}

§

Decode(DecodeError)

decode error: {0}

§

InvalidClientIdentifier(IdentifierError)

invalid client identifier error: {0}

§

InvalidRawHeader

Fields

§reason: String

invalid raw header error: {reason}

§

MissingClientMessage

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

§

InvalidProofHeight

Fields

§latest_height: Height
§proof_height: Height

the proof height is insufficient: latest_height={latest_height} proof_height={proof_height}

§

InvalidCommitmentProof(CommitmentError)

invalid commitment proof bytes error: {0}

§

InvalidPacketTimestamp(ParseTimestampError)

invalid packet timeout timestamp value error: {0}

§

ClientArgsTypeMismatch

Fields

§client_type: ClientType

mismatch between client and arguments types

§

LowHeaderHeight

Fields

§header_height: Height
§latest_height: Height

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

§

InvalidConsensusStateTimestamp

Fields

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

§

MissingLocalConsensusState

Fields

§height: Height

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

§

InvalidSigner

Fields

§reason: String

invalid signer error: {reason}

§

Ics23Verification(CommitmentError)

ics23 verification failure error: {0}

§

MisbehaviourHandlingFailure

Fields

§reason: String

misbehaviour handling failed with reason: {reason}

§

ClientSpecific

Fields

§description: String

client specific error: {description}

§

CounterOverflow

client counter overflow error

§

Other

Fields

§description: String

other error: {description}

Trait Implementations§

§

impl Debug for ClientError

§

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

Formats the value using the given formatter. Read more
§

impl Display for ClientError

§

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

Formats the value using the given formatter. Read more
§

impl Error for ClientError

§

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
§

impl From<&'static str> for ClientError

§

fn from(s: &'static str) -> ClientError

Converts to this type from the input type.
§

impl From<ClientError> for ContextError

§

fn from(original: ClientError) -> ContextError

Converts to this type from the input type.
§

impl From<ContextError> for ClientError

§

fn from(context_error: ContextError) -> ClientError

Converts to this type from the input type.
§

impl From<Error> for ClientError

§

fn from(e: Error) -> ClientError

Converts to this type from the input type.
§

impl From<UpgradeClientError> for ClientError

§

fn from(e: UpgradeClientError) -> ClientError

Converts to this type from the input type.

Auto Trait Implementations§

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> JsonSchemaMaybe for T