o
    wvXjT	  ã                   @   s<  d Z ddlmZmZ ddlmZ ddlmZm	Z	m
Z
 ddlmZ dZG dd„ deƒZG d	d
„ d
eƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd „ d eƒZG d!d"„ d"e	ƒZeG d#d$„ d$eƒƒZd%S )&zExceptions.é    )Úabsolute_importÚunicode_literals)Útimeout)ÚChannelErrorÚConnectionErrorÚResourceError)Úpython_2_unicode_compatible)Ú
KombuErrorÚOperationalErrorÚNotBoundErrorÚMessageStateErrorÚTimeoutErrorÚLimitExceededÚConnectionLimitExceededÚChannelLimitExceededr   r   ÚVersionMismatchÚSerializerNotInstalledr   ÚSerializationErrorÚEncodeErrorÚDecodeErrorÚ	HttpErrorÚInconsistencyErrorc                   @   ó   e Zd ZdZdS )r	   z)Common subclass for all Kombu exceptions.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úM/var/www/html/myproject/venv/lib/python3.10/site-packages/kombu/exceptions.pyr	      ó    r	   c                   @   r   )r
   z/Recoverable message transport connection error.Nr   r   r   r   r   r
      r    r
   c                   @   r   )r   z(Failed to serialize/deserialize content.Nr   r   r   r   r   r      r    r   c                   @   r   )r   zCannot encode object.Nr   r   r   r   r   r   !   r    r   c                   @   r   )r   zCannot decode object.Nr   r   r   r   r   r   %   r    r   c                   @   r   )r   z:Trying to call channel dependent method on unbound entity.Nr   r   r   r   r   r   )   r    r   c                   @   r   )r   z*The message has already been acknowledged.Nr   r   r   r   r   r   -   r    r   c                   @   r   )r   zLimit exceeded.Nr   r   r   r   r   r   1   r    r   c                   @   r   )r   z4Maximum number of simultaneous connections exceeded.Nr   r   r   r   r   r   5   r    r   c                   @   r   )r   z1Maximum number of simultaneous channels exceeded.Nr   r   r   r   r   r   9   r    r   c                   @   r   )r   z$Library dependency version mismatch.Nr   r   r   r   r   r   =   r    r   c                   @   r   )r   z>Support for the requested serialization type is not installed.Nr   r   r   r   r   r   A   r    r   c                   @   r   )ÚContentDisallowedz*Consumer does not allow this content-type.Nr   r   r   r   r   r!   E   r    r!   c                   @   r   )r   z‚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   r   I   r    r   c                       s*   e Zd ZdZd‡ fdd„	Zdd„ Z‡  ZS )r   zHTTP Client Error.Nc                    s*   || _ || _|| _tt| ƒ |||¡ d S )N)ÚcodeÚmessageÚresponseÚsuperr   Ú__init__)Úselfr"   r#   r$   ©Ú	__class__r   r   r&   T   s   zHttpError.__init__c                 C   s
   d  | ¡S )NzHTTP {0.code}: {0.message})Úformat)r'   r   r   r   Ú__str__Z   s   
zHttpError.__str__)NN)r   r   r   r   r&   r+   Ú__classcell__r   r   r(   r   r   P   s    r   N)r   Ú
__future__r   r   Úsocketr   r   Úamqpr   r   r   Ú
kombu.fiver   Ú__all__Ú	Exceptionr	   r
   r   r   r   r   r   r   r   r   r   r   r!   r   r   r   r   r   r   Ú<module>   s,    