a
    ù!f‘  ã                   @   sl   d dl mZ d dlmZ d dlm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dZdS )é    )Úabsolute_import)ÚGoogleAPICallError)ÚTimeoutErrorc                   @   s   e Zd ZdS )ÚPublishErrorN)Ú__name__Ú
__module__Ú__qualname__© r	   r	   úl/var/www/html/python-backend/venv/lib/python3.9/site-packages/google/cloud/pubsub_v1/publisher/exceptions.pyr      s   r   c                   @   s   e Zd ZdZdS )ÚMessageTooLargeErrorzIAttempt to publish a message that would exceed the server max size limit.N©r   r   r   Ú__doc__r	   r	   r	   r
   r      s   r   c                       s&   e Zd ZdZedœ‡ fdd„Z‡  ZS )Ú#PublishToPausedOrderingKeyExceptiona	  Publish attempted to paused ordering key. To resume publishing, call
    the resumePublish method on the publisher Client object with this
    ordering key. Ordering keys are paused if an unrecoverable error
    occurred during publish of a batch for that key.
    )Úordering_keyc                    s   || _ tt| ƒ ¡  d S )N)r   Úsuperr   Ú__init__)Úselfr   ©Ú	__class__r	   r
   r   $   s    z,PublishToPausedOrderingKeyException.__init__)r   r   r   r   Ústrr   Ú__classcell__r	   r	   r   r
   r      s   r   c                   @   s   e Zd ZdZdS )ÚFlowControlLimitErrorz8An action resulted in exceeding the flow control limits.Nr   r	   r	   r	   r
   r   )   s   r   )r   r   r   r   r   N)Ú
__future__r   Zgoogle.api_core.exceptionsr   Z!google.cloud.pubsub_v1.exceptionsr   r   Ú
ValueErrorr   Ú	Exceptionr   r   Ú__all__r	   r	   r	   r
   Ú<module>   s   