Enum ibc::core::ics04_channel::error::PacketError
source · pub enum PacketError {
Show 35 variants
Connection(ConnectionError),
Channel(ChannelError),
ChannelClosed {
channel_id: ChannelId,
},
InvalidPacketCounterparty {
port_id: PortId,
channel_id: ChannelId,
},
FrozenClient {
client_id: ClientId,
},
LowPacketHeight {
chain_height: Height,
timeout_height: TimeoutHeight,
},
LowPacketTimestamp,
InvalidPacketSequence {
given_sequence: Sequence,
next_sequence: Sequence,
},
InvalidChannelState {
channel_id: ChannelId,
state: State,
},
ConnectionNotOpen {
connection_id: ConnectionId,
},
PacketReceiptNotFound {
sequence: Sequence,
},
IncorrectPacketCommitment {
sequence: Sequence,
},
ImplementationSpecific,
UndefinedConnectionCounterparty {
connection_id: ConnectionId,
},
InvalidProof(ProofError),
PacketTimeoutHeightNotReached {
timeout_height: TimeoutHeight,
chain_height: Height,
},
PacketTimeoutTimestampNotReached {
timeout_timestamp: Timestamp,
chain_timestamp: Timestamp,
},
AcknowledgementExists {
sequence: Sequence,
},
InvalidAcknowledgement,
PacketAcknowledgementNotFound {
sequence: Sequence,
},
MissingHeight,
MissingPacket,
Signer(SignerError),
AppModule {
description: String,
},
RouteNotFound,
ZeroPacketSequence,
InvalidTimeoutHeight,
ZeroPacketData,
InvalidPacketTimestamp(ParseTimestampError),
Identifier(ValidationError),
MissingNextSendSeq {
port_id: PortId,
channel_id: ChannelId,
},
ChannelNotFound {
port_id: PortId,
channel_id: ChannelId,
},
PacketCommitmentNotFound {
sequence: Sequence,
},
MissingNextRecvSeq {
port_id: PortId,
channel_id: ChannelId,
},
MissingNextAckSeq {
port_id: PortId,
channel_id: ChannelId,
},
}Variants§
Connection(ConnectionError)
connection error: {0}
Channel(ChannelError)
channel error: {0}
ChannelClosed
Channel {channel_id} is Closed
InvalidPacketCounterparty
packet destination port {port_id} and channel {channel_id} doesn’t match the counterparty’s port/channel
FrozenClient
Client with id {client_id} is frozen
LowPacketHeight
Receiving chain block height {chain_height} >= packet timeout height {timeout_height}
LowPacketTimestamp
Receiving chain block timestamp >= packet timeout timestamp
InvalidPacketSequence
Invalid packet sequence {given_sequence} ≠ next send sequence {next_sequence}
InvalidChannelState
Channel {channel_id} should not be state {state}
ConnectionNotOpen
Fields
connection_id: ConnectionIdthe associated connection {connection_id} is not OPEN
PacketReceiptNotFound
Receipt for the packet {sequence} not found
IncorrectPacketCommitment
The stored commitment of the packet {sequence} is incorrect
ImplementationSpecific
implementation specific error
UndefinedConnectionCounterparty
Fields
connection_id: ConnectionIdUndefined counterparty connection for {connection_id}
InvalidProof(ProofError)
invalid proof: {0}
PacketTimeoutHeightNotReached
Packet timeout height {timeout_height} > chain height {chain_height}
PacketTimeoutTimestampNotReached
Packet timeout timestamp {timeout_timestamp} > chain timestamp {chain_timestamp}
AcknowledgementExists
Packet acknowledgement exists for the packet with the sequence {sequence}
InvalidAcknowledgement
Acknowledgment cannot be empty
PacketAcknowledgementNotFound
Acknowledgment for the packet {sequence} not found
MissingHeight
invalid proof: missing height
MissingPacket
there is no packet in this message
Signer(SignerError)
invalid signer address error: {0}
AppModule
application module error: {description}
RouteNotFound
route not found
ZeroPacketSequence
packet sequence cannot be 0
InvalidTimeoutHeight
invalid timeout height for the packet
ZeroPacketData
packet data bytes cannot be empty
InvalidPacketTimestamp(ParseTimestampError)
Invalid packet timeout timestamp value error: {0}
Identifier(ValidationError)
identifier error: {0}
MissingNextSendSeq
Missing sequence number for sending packets on port {port_id} and channel {channel_id}
ChannelNotFound
the channel end ({port_id}, {channel_id}) does not exist
PacketCommitmentNotFound
Commitment for the packet {sequence} not found
MissingNextRecvSeq
Missing sequence number for receiving packets on port {port_id} and channel {channel_id}
MissingNextAckSeq
Missing sequence number for ack packets on port {port_id} and channel {channel_id}