
    3
                     l   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r " S S\R                  5      r	 " S	 S
\R                  5      r
 " S S\R                  5      r " S S\R                  5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      rg)z*Wrapper for user-visible raised exception.    )absolute_import)division)unicode_literals)
exceptionsNc                       \ rS rSrSrSrg)InvalidInputValueError   z-Raised when the given input value is invalid. N__name__
__module____qualname____firstlineno____doc____static_attributes__r
       2lib/googlecloudsdk/api_lib/artifacts/exceptions.pyr   r      s    5r   r   c                       \ rS rSrSrSrg)UnsupportedLocationError   z*Raised when the given location is invalid.r
   Nr   r
   r   r   r   r      s    2r   r   c                       \ rS rSrSrSrg)ArtifactRegistryError!   z Generic Artifact Registry error.r
   Nr   r
   r   r   r   r   !   s    (r   r   c                       \ rS rSrSrSrg)InvalidGoModuleError%   zGRaised when the Go module source code cannot be packaged into a go.zip.r
   Nr   r
   r   r   r   r   %   s    Or   r   c                       \ rS rSrSrSrg)DirectoryNotExistError)   z'Raised when a directory does not exist.r
   Nr   r
   r   r   r   r   )   s    /r   r   c                       \ rS rSrSrSrg)PathNotDirectoryError-   z&Raised when a path is not a directory.r
   Nr   r
   r   r   r!   r!   -   s    .r   r!   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )NoJsonKeyCredentialsError1   .Raised when no JSON key credentials are found.c                 j   > [         TU ]  SR                  [        R                  " U5      5      5        g )Nz"JSON key credentials not found: {}super__init__formatsix	text_typeselfcause	__class__s     r   r*   "NoJsonKeyCredentialsError.__init__4   s'    	G,33CMM%4HIr   r
   r   r   r   r   r   r*   r   __classcell__r1   s   @r   r$   r$   1       6 r   r$   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )NoDefaultCredentialsError:   r&   c                 j   > [         TU ]  SR                  [        R                  " U5      5      5        g )Nz-Application default credentials not found: {}r(   r.   s     r   r*   "NoDefaultCredentialsError.__init__=   s*    	G7>>MM% 	
r   r
   r3   r5   s   @r   r8   r8   :   s    6 r   r8   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )NoUserCredentialsErrorE   r&   c                 j   > [         TU ]  SR                  [        R                  " U5      5      5        g )NzUser credentials not found: {}r(   r.   s     r   r*   NoUserCredentialsError.__init__H   s'    	G(//e0DEr   r
   r3   r5   s   @r   r=   r=   E   r6   r   r=   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )NoCredentialsErrorN   z%Raised when no credentials are found.c           
      r   > [         TU ]  SR                  SR                  S XU4 5       5      5      5        g )Nz!No credentials found. Details: {}z; c              3   N   #    U  H  n[         R                  " U5      v   M     g 7f)N)r,   r-   ).0es     r   	<genexpr>.NoCredentialsError.__init__.<locals>.<genexpr>T   s#      @A a  @s   #%)r)   r*   r+   join)r/   json_key_erradc_erruser_creds_errr1   s       r   r*   NoCredentialsError.__init__Q   s<    	G+22II &@ 	
r   r
   r3   r5   s   @r   rB   rB   N   s    - r   rB   )r   
__future__r   r   r   googlecloudsdk.corer   r,   Errorr   r   r   r   r   r!   r$   r8   r=   rB   r
   r   r   <module>rR      s    1 &  ' * 
6Z-- 63z// 3)J,, )P:++ P02 0/1 / 5  5 2 . r   