# pamqp.exceptions

The `pamqp.exceptions` module is auto-generated, created by the `tools/codegen.py` application.

`pamqp.exceptions` implements AMQP exceptions as Python exceptions so that client libraries can raise these exceptions as is appropriate without having to implement their own extensions for AMQP protocol related issues.

exception pamqp.exceptions.PAMQPException

  Base exception for all pamqp specific exceptions.

exception pamqp.exceptions.UnmarshalingException

  Raised when a frame is not able to be unmarshaled.

exception pamqp.exceptions.AMQPError

  Base exception for all AMQP errors.

exception pamqp.exceptions.AMQPSoftError

  Base exception for all AMQP soft errors.

exception pamqp.exceptions.AMQPHardError

  Base exception for all AMQP hard errors.

exception pamqp.exceptions.AMQPContentTooLarge

  The client attempted to transfer content larger than the server could accept at the present time. The client may retry at a later time.

exception pamqp.exceptions.AMQPNoRoute

  Returned when RabbitMQ sends back with ‘basic.return’ when a ‘mandatory’ message cannot be delivered to any queue.

exception pamqp.exceptions.AMQPNoConsumers

  When the exchange cannot deliver to a consumer when the immediate flag is set. As a result of pending data on the queue or the absence of any consumers of the queue.

exception pamqp.exceptions.AMQPAccessRefused

  The client attempted to work with a server entity to which it has no access due to security settings.

exception pamqp.exceptions.AMQPNotFound

  The client attempted to work with a server entity that does not exist.

exception pamqp.exceptions.AMQPResourceLocked

  The client attempted to work with a server entity to which it has no access because another client is working with it.

exception pamqp.exceptions.AMQPPreconditionFailed

  The client requested a method that was not allowed because some precondition failed.

exception pamqp.exceptions.AMQPConnectionForced

  An operator intervened to close the connection for some reason. The client may retry at some later date.

exception pamqp.exceptions.AMQPInvalidPath

  The client tried to work with an unknown virtual host.

exception pamqp.exceptions.AMQPFrameError

  The sender sent a malformed frame that the recipient could not decode. This strongly implies a programming error in the sending peer.

exception pamqp.exceptions.AMQPSyntaxError

  The sender sent a frame that contained illegal values for one or more fields. This strongly implies a programming error in the sending peer.

exception pamqp.exceptions.AMQPCommandInvalid

  The client sent an invalid sequence of frames, attempting to perform an operation that was considered invalid by the server. This usually implies a programming error in the client.

exception pamqp.exceptions.AMQPChannelError

  The client attempted to work with a channel that had not been correctly opened. This most likely indicates a fault in the client layer.

exception pamqp.exceptions.AMQPUnexpectedFrame

  The peer sent a frame that was not expected, usually in the context of a content header and body. This strongly indicates a fault in the peer’s content processing.

exception pamqp.exceptions.AMQPResourceError

  The server could not complete the method because it lacked sufficient resources. This may be due to the client creating too many of some type of entity.

exception pamqp.exceptions.AMQPNotAllowed

  The client tried to work with some entity in a manner that is prohibited by the server, due to security settings or by some other criteria.

exception pamqp.exceptions.AMQPNotImplemented

  The client tried to use functionality that is not implemented in the server.

exception pamqp.exceptions.AMQPInternalError

  The server could not complete the method because of an internal error. The server may require intervention by an operator in order to resume normal operations.