Source

amqpev / amqpev / errors.py

Full commit
class AMQPError(RuntimeError):
    """
    Any error specific to AMQP itself or AMQPev's client implementation.
    """
    pass

class ChannelClosedError(AMQPError):
    """ The channel has been closed """
    pass

class BrokerClosedChannel(ChannelClosedError):
    """ The broker closed the connection """
    pass

class ClientClosedChannel(ChannelClosedError):
    """ The client closed the connection """
    pass

class AMQPChannelException(BrokerClosedChannel):
    """
    The broker we are connected to issued a protocol exception on our
    channel.
    """
    pass

class ConnectionClosedError(ChannelClosedError):
    """ The connection has been closed """
    pass

class BrokerClosedConnection(ConnectionClosedError):
    """ The broker closed the connection """
    pass

class ClientClosedConnection(ConnectionClosedError):
    """ The client closed the connection """
    pass

class AMQPConnectionException(BrokerClosedConnection):
    """
    The broker we are connected to issued a protocol exception on our
    connection.
    """
    pass

class FrameTypeUnexpectedError(AMQPError):
    """
    The broker sent a frame type that was not expected, given AMQPev's current
    knowledge of the state of the channel.
    """
    pass

class UnknownChannelReceivedError(AMQPError):
    """ The broker sent a frame that is on a channel we do not know about. """
    pass

class ConnectionInitError(AMQPError):
    """ Unable to initialize the connection """
    pass

class ChannelCreateError(AMQPError):
    """ Unable to create a channel """
    pass

class AMQPMethodParameterError(AMQPError):
    """ Attempted to marshall a method without all required parameters. """
    pass