Enum Error
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}
ClientNotFound
client not found: {client_id}
ClientFrozen
client is frozen: {client_id}
ConsensusStateNotFound
consensus state not found at: {client_id}
at height {height}
ImplementationSpecific
implementation specific error
HeaderVerificationFailure
header verification failed with reason: {reason}
InvalidTrustThreshold
failed to build trust threshold from fraction: {numerator}
/{denominator}
FailedTrustThresholdConversion
failed to build Tendermint domain type trust threshold from fraction: {numerator}
/{denominator}
UnknownClientStateType
unknown client state type: {client_state_type}
EmptyPrefix
empty prefix
UnknownConsensusStateType
unknown client consensus state type: {consensus_state_type}
UnknownHeaderType
unknown header type: {header_type}
UnknownMisbehaviourType
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(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}
)
LowUpgradeHeight
upgraded client height {upgraded_height}
must be at greater than current client height {client_height}
InvalidConsensusStateTimestamp
timestamp is invalid or missing, timestamp={time1}
, now={time2}
HeaderNotWithinTrustPeriod
header not within trusting period: expires_at={latest_time}
now={update_time}
MissingLocalConsensusState
the local consensus state could not be retrieved for 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}
ClientSpecific
client specific error: {description}
Other
other error: {description}
Trait Implementations§
§impl Error for Error
Available on crate feature std
only.
impl Error for Error
std
only.§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
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> 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
§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>
T
in a tonic::Request