
    	                     j   S 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	\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 " 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 error exceptions to raise in the CLI.    )absolute_import)division)unicode_literals)
exceptionsc                       \ rS rSrSrSrg)Error   z)Exceptions for Deployment Manager errors. N__name__
__module____qualname____firstlineno____doc____static_attributes__r
       1lib/googlecloudsdk/api_lib/dataproc/exceptions.pyr   r      s    1r   r   c                       \ rS rSrSrSrg)ArgumentError   zCommand argument error.r
   Nr   r
   r   r   r   r      s    r   r   c                       \ rS rSrSrSrg)JobError    zJob encountered an error.r
   Nr   r
   r   r   r   r       s    !r   r   c                       \ rS rSrSrSrg)JobTimeoutError$   zJob timed out.r
   Nr   r
   r   r   r   r   $   s    r   r   c                       \ rS rSrSrSrg)OperationError(   zOperation encountered an error.r
   Nr   r
   r   r   r   r   (   s    'r   r   c                       \ rS rSrSrSrg)OperationTimeoutError,   zOperation timed out.r
   Nr   r
   r   r   r!   r!   ,   s    r   r!   c                       \ rS rSrSrSrg)
ParseError0   zFile parsing error.r
   Nr   r
   r   r   r$   r$   0   s    r   r$   c                       \ rS rSrSrSrg)FileUploadError4   zFile upload error.r
   Nr   r
   r   r   r'   r'   4   s    r   r'   c                       \ rS rSrSrSrg)ObjectReadError8   z Cloud Storage Object read error.r
   Nr   r
   r   r   r*   r*   8   s    (r   r*   c                       \ rS rSrSrSrg)ValidationError<   z+Error while validating YAML against schema.r
   Nr   r
   r   r   r-   r-   <   s    3r   r-   c                       \ rS rSrSrSrg)PersonalAuthError@   z1Error while establishing a personal auth session.r
   Nr   r
   r   r   r0   r0   @   s    9r   r0   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )GkeClusterGetErrorD   z"Error while getting a GKE Cluster.c                 J   > [         [        U ]  SR                  U5      5        g )Nz(Error while getting the GKE Cluster: {0})superr3   __init__format)selfcause	__class__s     r   r7   GkeClusterGetError.__init__G   s"    	
d,299%@Br   r
   )r   r   r   r   r   r7   r   __classcell__r;   s   @r   r3   r3   D   s    *B Br   r3   c                   2   ^  \ rS rSrSrU 4S jrS rSrU =r$ )&GkeClusterMissingWorkloadIdentityErrorL   z-GKE Cluster is not Workload Identity enabled.c                 6   > [         [        U ]  5         Xl        g )N)r6   r@   r7   gke_cluster_ref)r9   rC   r;   s     r   r7   /GkeClusterMissingWorkloadIdentityError.__init__O   s    	
0$@B*r   c                 T    SR                  U R                  R                  5       5      $ )NzGKE Cluster "{0}" does not have Workload Identity enabled. Dataproc on GKE requires the GKE Cluster to have Workload Identity enabled. See https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity)r8   rC   RelativeName)r9   s    r   __str__.GkeClusterMissingWorkloadIdentityError.__str__S   s(    	S fT!!..012r   )rC   )	r   r   r   r   r   r7   rG   r   r=   r>   s   @r   r@   r@   L   s    5+2 2r   r@   N)r   
__future__r   r   r   googlecloudsdk.corer   r   r   r   r   r   r!   r$   r'   r*   r-   	Exceptionr0   r3   r@   r
   r   r   <module>rL      s    E &  ' *2J 2 E  "u "h (U (N  e )e )4e 4:	 :B B2U 2r   