Exceptions

class amqpstorm.AMQPError[source]

General AMQP Error.

Exceptions raised by AMQPStorm are mapped based to the AMQP 0.9.1 specifications (when applicable).

e.g.

except AMQPChannelError as why:
    if why.error_code == 312:
        self.channel.queue.declare(queue_name)
property documentation: str | bytes

AMQP Documentation string.

property error_code: int | None

AMQP Error Code - A 3-digit reply code.

property error_type: str | None

AMQP Error Type e.g. NOT-FOUND.

__init__(*args: Any, **kwargs: Any) None[source]
class amqpstorm.AMQPConnectionError[source]

AMQP Connection Error.

class amqpstorm.AMQPChannelError[source]

AMQP Channel Error.

class amqpstorm.AMQPMessageError[source]

AMQP Message Error.

class amqpstorm.AMQPInvalidArgument[source]

AMQP Argument Error.