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
Client identifier constructor failed for type {client_type} with counter {counter}, validation error: {validation_error}
ClientFrozen
client is frozen with description: {description}
ClientNotActive
client is not active. Status={status}
ClientStateNotFound
client state not found: {client_id}
ClientStateAlreadyExists
client state already exists: {client_id}
ConsensusStateNotFound
consensus state not found at: {client_id} at height {height}
ProcessedTimeNotFound
Processed time for the client {client_id} at height {height} not found
ProcessedHeightNotFound
Processed height for the client {client_id} at height {height} not found
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(EncodeError)
encode error: {0}
Decode(DecodeError)
decode error: {0}
InvalidClientIdentifier(IdentifierError)
invalid client identifier error: {0}
InvalidRawHeader
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
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: ClientTypemismatch between client and arguments types
LowHeaderHeight
received header height ({header_height}) is lower than (or equal to) client latest height ({latest_height})
InvalidConsensusStateTimestamp
timestamp is invalid or missing, timestamp={time1}, now={time2}
MissingLocalConsensusState
the local consensus state could not be retrieved for height {height}
InvalidSigner
invalid signer error: {reason}
Ics23Verification(CommitmentError)
ics23 verification failure error: {0}
MisbehaviourHandlingFailure
misbehaviour handling failed with reason: {reason}
ClientSpecific
client specific error: {description}
CounterOverflow
client counter overflow error
Other
other error: {description}