
    3
                     l   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlZ G d dej                        Z	 G d	 d
ej                        Z
 G d dej                        Z G d dej                        Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Zy)z*Wrapper for user-visible raised exception.    )absolute_import)division)unicode_literals)
exceptionsNc                       e Zd ZdZy)InvalidInputValueErrorz-Raised when the given input value is invalid.N__name__
__module____qualname____doc__     2lib/googlecloudsdk/api_lib/artifacts/exceptions.pyr   r      s    5r   r   c                       e Zd ZdZy)UnsupportedLocationErrorz*Raised when the given location is invalid.Nr	   r   r   r   r   r      s    2r   r   c                       e Zd ZdZy)ArtifactRegistryErrorz Generic Artifact Registry error.Nr	   r   r   r   r   r   !   s    (r   r   c                       e Zd ZdZy)InvalidGoModuleErrorzGRaised when the Go module source code cannot be packaged into a go.zip.Nr	   r   r   r   r   r   %   s    Or   r   c                       e Zd ZdZy)DirectoryNotExistErrorz'Raised when a directory does not exist.Nr	   r   r   r   r   r   )   s    /r   r   c                       e Zd ZdZy)PathNotDirectoryErrorz&Raised when a path is not a directory.Nr	   r   r   r   r   r   -   s    .r   r   c                   "     e Zd ZdZ fdZ xZS )NoJsonKeyCredentialsError.Raised when no JSON key credentials are found.c                 h    t         |   dj                  t        j                  |                   y )Nz"JSON key credentials not found: {}super__init__formatsix	text_typeselfcause	__class__s     r   r!   z"NoJsonKeyCredentialsError.__init__4   s'    	G,33CMM%4HIr   r
   r   r   r   r!   __classcell__r(   s   @r   r   r   1       6 r   r   c                   "     e Zd ZdZ fdZ xZS )NoDefaultCredentialsErrorr   c                 h    t         |   dj                  t        j                  |                   y )Nz-Application default credentials not found: {}r   r%   s     r   r!   z"NoDefaultCredentialsError.__init__=   s*    	G7>>MM% 	
r   r)   r+   s   @r   r.   r.   :   s    6 r   r.   c                   "     e Zd ZdZ fdZ xZS )NoUserCredentialsErrorr   c                 h    t         |   dj                  t        j                  |                   y )NzUser credentials not found: {}r   r%   s     r   r!   zNoUserCredentialsError.__init__H   s'    	G(//e0DEr   r)   r+   s   @r   r1   r1   E   r,   r   r1   c                   "     e Zd ZdZ fdZ xZS )NoCredentialsErrorz%Raised when no credentials are found.c           
      t    t         |   dj                  dj                  d |||fD                           y )Nz!No credentials found. Details: {}z; c              3   F   K   | ]  }t        j                  |        y w)N)r#   r$   ).0es     r   	<genexpr>z.NoCredentialsError.__init__.<locals>.<genexpr>T   s!      @A a @s   !)r    r!   r"   join)r&   json_key_erradc_erruser_creds_errr(   s       r   r!   zNoCredentialsError.__init__Q   s>    	G+22II &@ 	
r   r)   r+   s   @r   r4   r4   N   s    - r   r4   )r   
__future__r   r   r   googlecloudsdk.corer   r#   Errorr   r   r   r   r   r   r   r.   r1   r4   r   r   r   <module>rA      s    1 &  ' * 
6Z-- 63z// 3)J,, )P:++ P02 0/1 / 5  5 2 . r   