
    #	                     
   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	\R                  5      r	 " S
 S\R                  5      r
 " S S\R                  5      r " S S\R                  5      rg)z&Exceptions for Cloud TPU VM libraries.    )absolute_import)division)unicode_literals)
exceptionsc                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )TPUInUnusableTerminalState   z5Error when the TPU is in an unusable, terminal state.c                 J   > [         [        U ]  SR                  U5      5        g )Nz?This TPU has terminal state "{}", so it cannot be used anymore.)superr   __init__formatselfstate	__class__s     @lib/googlecloudsdk/command_lib/compute/tpus/tpu_vm/exceptions.pyr   #TPUInUnusableTerminalState.__init__   s    	
$d4I	     __name__
__module____qualname____firstlineno____doc__r   __static_attributes____classcell__r   s   @r   r   r      s    = r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )TPUInUnusableState!   z+Error when the TPU is in an unusable state.c                 J   > [         [        U ]  SR                  U5      5        g )Nz@This TPU has state "{}", so it cannot be currently connected to.)r   r    r   r   r   s     r   r   TPUInUnusableState.__init__$   s    	
d,J	r   r   r   r   s   @r   r    r    !   s    3 r   r    c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )SSHKeyNotInAgent*   z/Error when the SSH key is not in the SSH agent.c                 J   > [         [        U ]  SR                  U5      5        g )NzZSSH Key is not present in the SSH agent. Please run "ssh-add {}" to add it, and try again.)r   r%   r   r   )r   identity_filer   s     r   r   SSHKeyNotInAgent.__init__-   s"    	
D*	!!'!68r   r   r   r   s   @r   r%   r%   *   s    78 8r   r%   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )IapTunnelingUnavailable3   zDError when IAP tunneling is unavailable (either temporarily or not).c                 ,   > [         [        U ]  S5        g )Nz<Currently unable to connect to this TPU using IAP tunneling.)r   r+   r   r   r   s    r   r    IapTunnelingUnavailable.__init__6   s    	
!41FHr   r   r   r   s   @r   r+   r+   3   s    LH Hr   r+   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )TPUInMaintenanceEvent;   z4Error when TPU has unhealthy maintenance for health.c                 ,   > [         [        U ]  S5        g )NzThis TPU is going through a maintenance event, and is currently unavailable. For more information, see https://cloud.google.com/tpu/docs/maintenance-events.)r   r1   r   r.   s    r   r   TPUInMaintenanceEvent.__init__>   s    	
/ 	gr   r   r   r   s   @r   r1   r1   ;   s    < r   r1   N)r   
__future__r   r   r   googlecloudsdk.corer   Errorr   r    r%   r+   r1   r   r   r   <module>r8      sr    - &  ' *!1!1 )) 8z'' 8Hj.. HJ,, r   