This document is for py-amqp's development version, which can be significantly different from previous releases. Get the stable docs here: 5.3.

# `amqp.exceptions`

Exceptions used by amqp.

exception amqp.exceptions.AMQPDeprecationWarning

  Warning for deprecated things.

exception amqp.exceptions.AMQPError(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  Base class for all AMQP exceptions.

  code = 0
  property method

exception amqp.exceptions.AMQPNotImplementedError(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Not Implemented Error.

  code = 540

exception amqp.exceptions.AccessRefused(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Access Refused Error.

  code = 403

exception amqp.exceptions.ChannelError(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Channel Error.

exception amqp.exceptions.ChannelNotOpen(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Channel Not Open Error.

  code = 504

exception amqp.exceptions.ConnectionError(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Connection Error.

exception amqp.exceptions.ConnectionForced(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Connection Forced Error.

  code = 320

exception amqp.exceptions.ConsumerCancelled(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Consumer Cancelled Predicate.

exception amqp.exceptions.ContentTooLarge(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Content Too Large Error.

  code = 311

exception amqp.exceptions.FrameError(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Frame Error.

  code = 501

exception amqp.exceptions.FrameSyntaxError(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Frame Syntax Error.

  code = 502

exception amqp.exceptions.InternalError(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Internal Error.

  code = 541

exception amqp.exceptions.InvalidCommand(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Invalid Command Error.

  code = 503

exception amqp.exceptions.InvalidPath(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Invalid Path Error.

  code = 402

exception amqp.exceptions.IrrecoverableChannelError(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  Exception class for irrecoverable channel errors.

exception amqp.exceptions.IrrecoverableConnectionError(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  Exception class for irrecoverable connection errors.

exception amqp.exceptions.MessageNacked

  Message was nacked by broker.

exception amqp.exceptions.NoConsumers(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP No Consumers Error.

  code = 313

exception amqp.exceptions.NotAllowed(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Not Allowed Error.

  code = 530

exception amqp.exceptions.NotFound(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Not Found Error.

  code = 404

exception amqp.exceptions.PreconditionFailed(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Precondition Failed Error.

  code = 406

exception amqp.exceptions.RecoverableChannelError(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  Exception class for recoverable channel errors.

exception amqp.exceptions.RecoverableConnectionError(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  Exception class for recoverable connection errors.

exception amqp.exceptions.ResourceError(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Resource Error.

  code = 506

exception amqp.exceptions.ResourceLocked(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Resource Locked Error.

  code = 405

exception amqp.exceptions.UnexpectedFrame(reply_text=None, method_sig=None, method_name=None, reply_code=None)

  AMQP Unexpected Frame.

  code = 505