
    	                     H   S 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.    )
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$ )NoJsonKeyCredentialsError.   .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__1   s'    	G,33CMM%4HIr   r   r	   r
   r   r   r   r'   r   __classcell__r.   s   @r   r!   r!   .       6 r   r!   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )NoDefaultCredentialsError7   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   r0   r2   s   @r   r5   r5   7   s    6 r   r5   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )NoUserCredentialsErrorB   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__E   s'    	G(//e0DEr   r   r0   r2   s   @r   r:   r:   B   r3   r   r:   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )NoCredentialsErrorK   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>Q   s#      @A a  @s   #%)r&   r'   r(   join)r,   json_key_erradc_erruser_creds_errr.   s       r   r'   NoCredentialsError.__init__N   s<    	G+22II &@ 	
r   r   r0   r2   s   @r   r?   r?   K   s    - r   r?   )r   googlecloudsdk.corer   r)   Errorr   r   r   r   r   r   r!   r5   r:   r?   r   r   r   <module>rN      s    1 + 
6Z-- 63z// 3)J,, )P:++ P02 0/1 / 5  5 2 . r   