gamqp/amqp091/core
Errors shared by every gamqp module.
Types
pub type AmqpError {
ConnectionFailed(reason: String)
ProtocolMismatch
AuthenticationFailed(reason: String)
ConnectionClosed(code: Int, text: String)
ConnectionLost(reason: String)
ChannelClosed(code: Int, text: String)
NotOpen
Timeout
NoChannelAvailable
Nacked
InvalidArgument(reason: String)
ProtocolError(reason: String)
}
Constructors
-
ConnectionFailed(reason: String)The TCP or TLS connection could not be established.
-
ProtocolMismatchThe broker answered with a protocol header other than AMQP 0-9-1.
-
AuthenticationFailed(reason: String)The broker rejected the credentials or the auth mechanism.
-
ConnectionClosed(code: Int, text: String)The broker closed the connection, e.g. 320 when it shuts down or 530 for a vhost the user cannot access.
-
ConnectionLost(reason: String)The socket went away, or the broker stopped answering heartbeats.
-
ChannelClosed(code: Int, text: String)The broker closed the channel, e.g. 404 when a queue does not exist or 406 when a declaration does not match the existing one.
-
NotOpenThe channel or connection was already closed.
-
TimeoutNo reply arrived within the timeout.
-
NoChannelAvailableEvery channel id allowed by the negotiated channel-max is in use.
-
NackedThe broker nacked at least one message published since the last wait.
-
InvalidArgument(reason: String)A value cannot be sent, e.g. a name longer than 255 bytes.
-
ProtocolError(reason: String)The broker sent something that does not follow the protocol.