
    	                     F   S 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.    )
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)
ParseError-   zFile parsing error.r   Nr   r   r   r   r!   r!   -   s    r   r!   c                       \ rS rSrSrSrg)FileUploadError1   zFile upload error.r   Nr   r   r   r   r$   r$   1   s    r   r$   c                       \ rS rSrSrSrg)ObjectReadError5   z Cloud Storage Object read error.r   Nr   r   r   r   r'   r'   5   s    (r   r'   c                       \ rS rSrSrSrg)ValidationError9   z+Error while validating YAML against schema.r   Nr   r   r   r   r*   r*   9   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   r-   r-   =   s    9r   r-   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )GkeClusterGetErrorA   z"Error while getting a GKE Cluster.c                 J   > [         [        U ]  SR                  U5      5        g )Nz(Error while getting the GKE Cluster: {0})superr0   __init__format)selfcause	__class__s     r   r4   GkeClusterGetError.__init__D   s"    	
d,299%@Br   r   )r	   r
   r   r   r   r4   r   __classcell__r8   s   @r   r0   r0   A   s    *B Br   r0   c                   2   ^  \ rS rSrSrU 4S jrS rSrU =r$ )&GkeClusterMissingWorkloadIdentityErrorI   z-GKE Cluster is not Workload Identity enabled.c                 6   > [         [        U ]  5         Xl        g )N)r3   r=   r4   gke_cluster_ref)r6   r@   r8   s     r   r4   /GkeClusterMissingWorkloadIdentityError.__init__L   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)r5   r@   RelativeName)r6   s    r   __str__.GkeClusterMissingWorkloadIdentityError.__str__P   s(    	S fT!!..012r   )r@   )	r	   r
   r   r   r   r4   rD   r   r:   r;   s   @r   r=   r=   I   s    5+2 2r   r=   N)r   googlecloudsdk.corer   r   r   r   r   r   r   r!   r$   r'   r*   	Exceptionr-   r0   r=   r   r   r   <module>rH      s    E +2J 2 E  "u "h (U (N  e )e )4e 4:	 :B B2U 2r   