
                             S r SSKJr  SSKJr  SSKJ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.    )absolute_import)division)unicode_literals)
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__0   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)SourceUploadError4   z%Exception for source upload failures.r
   Nr   r
   r   r   r0   r0   4   s    -r   r0   N)r   
__future__r   r   r   googlecloudsdk.callioper   calliope_exceptionsgooglecloudsdk.coreErrorr   InvalidArgumentExceptionr   r#   r+   r0   r
   r   r   <module>r8      sn    F &  ' E *>Z%% >C-FF C~ L1JJ L. .r   