
    8                         S r SSKJr  SSKJr   " S S\R
                  5      r " S S\R                  5      r " S S\5      r	 " S	 S
\R                  5      r
 " S S\5      rg)z?Version-agnostic errors to raise for gcloud functions commands.    )
exceptionsc                       \ rS rSrSrSrg)FunctionsError   z5Base exception for user recoverable Functions errors. N__name__
__module____qualname____firstlineno____doc____static_attributes__r       6lib/googlecloudsdk/command_lib/functions/exceptions.pyr   r      s    =r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )SourceArgumentError   z<Exception for errors related to using the --source argument.c                 .   > [         [        U ]  SU5        g )Nz--source)superr   __init__selfmessage	__class__s     r   r   SourceArgumentError.__init__   s    	
t-j'Br   r   r	   r
   r   r   r   r   r   __classcell__r   s   @r   r   r      s    DC Cr   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )OversizedDeploymentError    z0Exception to indicate the deployment is too big.c                 J   > [         [        U ]  SR                  X5      5        g )NzFUncompressed deployment is {}, bigger than maximum allowed size of {}.)r   r    r   format)r   actual_sizemax_allowed_sizer   s      r   r   !OversizedDeploymentError.__init__#   s     	
"D2P		.r   r   r   r   s   @r   r    r        s    8 r   r    c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )IgnoreFileNotFoundError*   z@Exception for when file specified by --ignore-file is not found.c                 .   > [         [        U ]  SU5        g )Nz--ignore-file)r   r(   r   r   s     r   r    IgnoreFileNotFoundError.__init__-   s    	
!41/7Kr   r   r   r   s   @r   r(   r(   *   s    HL Lr   r(   c                       \ rS rSrSrSrg)SourceUploadError1   z%Exception for source upload failures.r   Nr   r   r   r   r-   r-   1   s    -r   r-   N)r   googlecloudsdk.callioper   calliope_exceptionsgooglecloudsdk.coreErrorr   InvalidArgumentExceptionr   r    r(   r-   r   r   r   <module>r4      se    F E *>Z%% >C-FF C~ L1JJ L. .r   