
                             d dl mZ d dlmZ d dlmZ  G d de      Z G d de      Z G d d	e	      Z
 G d
 de	      ZdZy)    )absolute_import)GoogleAPICallError)TimeoutErrorc                       e Zd Zy)PublishErrorN)__name__
__module____qualname__     >lib/third_party/google/cloud/pubsub_v1/publisher/exceptions.pyr   r      s    r   r   c                       e Zd ZdZy)MessageTooLargeErrorzIAttempt to publish a message that would exceed the server max size limit.Nr   r	   r
   __doc__r   r   r   r   r      s    Sr   r   c                   (     e Zd ZdZdef fdZ x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                 8    || _         t        t        |           y )N)r   superr   __init__)selfr   	__class__s     r   r   z,PublishToPausedOrderingKeyException.__init__$   s    (14ACr   )r   r	   r
   r   strr   __classcell__)r   s   @r   r   r      s    DS D Dr   r   c                       e Zd ZdZy)FlowControlLimitErrorz8An action resulted in exceeding the flow control limits.Nr   r   r   r   r   r   )   s    Br   r   )r   r   r   r   r   N)
__future__r   google.api_core.exceptionsr   !google.cloud.pubsub_v1.exceptionsr   r   
ValueErrorr   	Exceptionr   r   __all__r   r   r   <module>r$      sN    ' 9 :	% 	T: T	D) 	DCI Cr   