Exceptions

class amqpstorm.AMQPError(*args, **kwargs)

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

AMQP Documentation string.

property error_code

AMQP Error Code - A 3-digit reply code.

property error_type

AMQP Error Type e.g. NOT-FOUND.

class amqpstorm.AMQPConnectionError(*args, **kwargs)

AMQP Connection Error.

class amqpstorm.AMQPChannelError(*args, **kwargs)

AMQP Channel Error.

class amqpstorm.AMQPMessageError(*args, **kwargs)

AMQP Message Error.

class amqpstorm.AMQPInvalidArgument(*args, **kwargs)

AMQP Argument Error.