
    %	                         d Z ddlmZ ddlmZ ddlmZ ddlm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y)z!Errors for Fleet scopes commands.    )absolute_import)division)unicode_literals)
exceptionsc                   "     e Zd ZdZ fdZ xZS )InsufficientPermissionsErrorzEAn error raised when the caller does not have sufficient permissions.c                 0    d}t         t        |   |       y )Nz+Caller doesn't have sufficient permissions.)superr   __init__)selfmessage	__class__s     ?lib/googlecloudsdk/command_lib/container/fleet/scopes/errors.pyr   z%InsufficientPermissionsError.__init__   s    ;G	
&6w?    __name__
__module____qualname____doc__r   __classcell__r   s   @r   r   r      s    M@ @r   r   c                   "     e Zd ZdZ fdZ xZS )InvalidFlagValueErrorz7An error raised for an invalid value for certain flags.c                 N    dj                  |      }t        t        |   |       y )NzInvalid flag value: {})formatr
   r   r   )r   msgr   r   s      r   r   zInvalidFlagValueError.__init__"   s#    &--c2G	
/8r   r   r   s   @r   r   r      s    ?9 9r   r   c                   "     e Zd ZdZ fdZ xZS )UnknownApiEndpointOverrideErrorzBAn error raised for an invalid value for `api_endpoint_overrides`.c                 N    dj                  |      }t        t        |   |       y )Nz+Unknown api_endpoint_overrides value for {})r   r
   r   r   )r   api_namer   r   s      r   r   z(UnknownApiEndpointOverrideError.__init__*   s#    ;BB8LG	
)49'Br   r   r   s   @r   r   r   '   s    JC Cr   r   c                   "     e Zd ZdZ fdZ xZS )ServiceNotEnabledErrorz4An error raised when a necessary API is not enabled.c                 T    dj                  |||      }t        t        |   |       y )Na#  {} has not been used in project {project_id} before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/{}/overview?project={project_id} then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.)
project_id)r   r
   r"   r   )r   service_friendly_nameservice_namer$   r   r   s        r   r   zServiceNotEnabledError.__init__2   s:    	= ?Ef!<J ?E ?H  

 $09r   r   r   s   @r   r"   r"   /   s    <: :r   r"   N)r   
__future__r   r   r   googlecloudsdk.corer   Errorr   r   r   r"    r   r   <module>r+      sb    ( &  ' *@:#3#3 @9J,, 9Cj&6&6 C:Z-- :r   