Exceptions

Pika specific exceptions

exception pika.exceptions.AMQPChannelError[source]
exception pika.exceptions.AMQPConnectionError[source]
exception pika.exceptions.AMQPError[source]
exception pika.exceptions.AuthenticationError[source]
exception pika.exceptions.BodyTooLongError[source]
exception pika.exceptions.ChannelAlreadyClosing[source]

Raised when Channel.close is called while channel is already closing

exception pika.exceptions.ChannelClosed[source]
exception pika.exceptions.ChannelError[source]
exception pika.exceptions.ConnectionClosed[source]
exception pika.exceptions.ConsumerCancelled[source]
exception pika.exceptions.DuplicateConsumerTag[source]
exception pika.exceptions.DuplicateGetOkCallback[source]
exception pika.exceptions.IncompatibleProtocolError[source]
exception pika.exceptions.InvalidChannelNumber[source]
exception pika.exceptions.InvalidFieldTypeException[source]
exception pika.exceptions.InvalidFrameError[source]
exception pika.exceptions.InvalidMaximumFrameSize[source]

DEPRECATED; pika.connection.Parameters.frame_max property setter now raises the standard ValueError exception when the value is out of bounds.

exception pika.exceptions.InvalidMinimumFrameSize[source]

DEPRECATED; pika.connection.Parameters.frame_max property setter now raises the standard ValueError exception when the value is out of bounds.

exception pika.exceptions.MethodNotImplemented[source]
exception pika.exceptions.NackError(messages)[source]

This exception is raised when a message published in publisher-acknowledgements mode is Nack’ed by the broker.

Used by BlockingChannel.

exception pika.exceptions.NoFreeChannels[source]
exception pika.exceptions.ProbableAccessDeniedError[source]
exception pika.exceptions.ProbableAuthenticationError[source]
exception pika.exceptions.ProtocolSyntaxError[source]
exception pika.exceptions.ProtocolVersionMismatch[source]
exception pika.exceptions.RecursionError[source]

The requested operation would result in unsupported recursion or reentrancy.

Used by BlockingConnection/BlockingChannel

exception pika.exceptions.ShortStringTooLong[source]
exception pika.exceptions.UnexpectedFrameError[source]
exception pika.exceptions.UnroutableError(messages)[source]

Exception containing one or more unroutable messages returned by broker via Basic.Return.

Used by BlockingChannel.

In publisher-acknowledgements mode, this is raised upon receipt of Basic.Ack from broker; in the event of Basic.Nack from broker, NackError is raised instead

exception pika.exceptions.UnspportedAMQPFieldException[source]

Deprecated version of UnsupportedAMQPFieldException

exception pika.exceptions.UnsupportedAMQPFieldException[source]