HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/kombu/__pycache__/exceptions.cpython-310.pyc
o

'we�@sndZddlmZddlmZddlmZddlm	Z	m
Z
ddlmZm
Z
mZe	r.ddlmZdZe
d	ed
�Z	d2d3dd�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGd d!�d!e�ZGd"d#�d#e�ZGd$d%�d%e�ZGd&d'�d'e�ZGd(d)�d)e�Z Gd*d+�d+e�Z!Gd,d-�d-e!�Z"Gd.d/�d/e
�Z#Gd0d1�d1e�Z$dS)4zExceptions.�)�annotations)�timeout)�
TracebackType)�
TYPE_CHECKING�TypeVar)�ChannelError�ConnectionError�
ResourceError)�Response)�reraise�
KombuError�OperationalError�
NotBoundError�MessageStateError�TimeoutError�
LimitExceeded�ConnectionLimitExceeded�ChannelLimitExceededrr�VersionMismatch�SerializerNotInstalledr	�SerializationError�EncodeError�DecodeError�	HttpError�InconsistencyError�BaseExceptionType)�boundN�tp�type[BaseExceptionType]�value�tb�TracebackType | None�returncCs|j|ur
|�|��|�)zReraise exception.)�
__traceback__�with_traceback)rrr �r%�I/home/arjun/projects/env/lib/python3.10/site-packages/kombu/exceptions.pyrs

rc@�eZdZdZdS)rz)Common subclass for all Kombu exceptions.N��__name__�
__module__�__qualname__�__doc__r%r%r%r&r&�rc@r')r
z/Recoverable message transport connection error.Nr(r%r%r%r&r
*r-r
c@r')rz(Failed to serialize/deserialize content.Nr(r%r%r%r&r.r-rc@r')rzCannot encode object.Nr(r%r%r%r&r2r-rc@r')rzCannot decode object.Nr(r%r%r%r&r6r-rc@r')rz:Trying to call channel dependent method on unbound entity.Nr(r%r%r%r&r:r-rc@r')rz*The message has already been acknowledged.Nr(r%r%r%r&r>r-rc@r')rzLimit exceeded.Nr(r%r%r%r&rBr-rc@r')rz4Maximum number of simultaneous connections exceeded.Nr(r%r%r%r&rFr-rc@r')rz1Maximum number of simultaneous channels exceeded.Nr(r%r%r%r&rJr-rc@r')rz$Library dependency version mismatch.Nr(r%r%r%r&rNr-rc@r')rz>Support for the requested serialization type is not installed.Nr(r%r%r%r&rRr-rc@r')�ContentDisallowedz*Consumer does not allow this content-type.Nr(r%r%r%r&r.Vr-r.c@r')rz�Data or environment has been found to be inconsistent.

    Depending on the cause it may be possible to retry the operation.
    Nr(r%r%r%r&rZr-rcs2eZdZdZ		dd�fdd�
Zddd�Z�ZS)rzHTTP Client Error.N�code�int�message�
str | None�response�Response | Noner"�Nonecs&||_||_||_t��|||�dS�N)r/r1r3�super�__init__)�selfr/r1r3��	__class__r%r&r8dszHttpError.__init__�strcCs
d�|�S)NzHTTP {0.code}: {0.message})�format)r9r%r%r&�__str__os
zHttpError.__str__)NN)r/r0r1r2r3r4r"r5)r"r<)r)r*r+r,r8r>�
__classcell__r%r%r:r&ras�rr6)rrrrr r!r"r)%r,�
__future__r�socketrr�typesr�typingrr�amqprrr	�kombu.asynchronous.httpr
�__all__�
BaseExceptionrr�	Exceptionrr
rrrrrrrrrrr.rrr%r%r%r&�<module>s6
�