
                             S r SSKJ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g)z>Custom errors for the SCC RemediationIntent resource commands.    )absolute_import)division)print_function)unicode_literals)
exceptionsc                       \ rS rSrSrSrg)Error   z!Base error class for this module. N)__name__
__module____qualname____firstlineno____doc____static_attributes__r       @lib/googlecloudsdk/command_lib/scc/remediation_intents/errors.pyr	   r	      s    )r   r	   c                   4   ^  \ rS rSrSrS\4U 4S jjrSrU =r$ )TfStateFetchingError   z2An error occurred while fetching the TfState data.error_messagec                 `   > Uc  [         [        U ]  S5        g[         [        U ]  SU 35        g)zqInitializes the TfStateFetchingError.

Args:
  error_message: The error message to be included in the exception.
Nz1An error occurred while fetching the TfState dataz3An error occurred while fetching the TfState data: superr	   __init__)selfr   	__class__s     r   r   TfStateFetchingError.__init__    s8     E4!
= E4!?
Or   r   	r   r   r   r   r   strr   r   __classcell__r   s   @r   r   r      s    :C  r   r   c                   8   ^  \ rS rSrSrS\S\4U 4S jjrSrU =r$ )APICallError0   z:An error occurred while calling the RemediationIntent API.method_namer   c                 l   > Ub  Uc  [         [        U ]  S5        g[         [        U ]  SU SU 35        g)zInitializes the APICallError.

Args:
  method_name: The name of the API method that failed.
  error_message: The error message to be included in the exception.
Nz;An Internal service error occurred while calling the methodz<An Internal service error occurred while calling the method z, detailed error: r   )r   r&   r   r   s      r   r   APICallError.__init__3   sI      3E4!
G E4!],]O=r   r   r   r"   s   @r   r$   r$   0   s    B# c  r   r$   c                   8   ^  \ rS rSrSrSS\4U 4S jjjrSrU =r$ )InvalidGitConfigErrorE   z;An error representing missing field in the git config file.missing_fieldc                 b   > Uc  [         [        U ]  S5        g[         [        U ]  SU S35        g)zuInitializes the InvalidGitConfigError.

Args:
  missing_field: The name of the missing field in the git config file.
NzMissing git config field name.z(Field missing from the git config file: .r   )r   r,   r   s     r   r   InvalidGitConfigError.__init__H   s6     E4!"BCE4!4]O1
Er   r   )Nr   r"   s   @r   r*   r*   E   s    CC  r   r*   c                   8   ^  \ rS rSrSrS\S\4U 4S jjrSrU =r$ )InvalidDirectoryPathErrorV   z9An error representing an invalid relative directory path.dir_pathr   c                 V   > Uc  [         TU ]  S5        g[         TU ]  SU SU 35        g)zInitializes the InvalidDirectoryPathError.

Args:
  dir_path: The invalid relative directory path.
  error_message: The error message to be included in the exception.
Nz Invalid relative directory path.z!Invalid relative directory path: z. Detailed error: )r   r   )r   r3   r   r   s      r   r   "InvalidDirectoryPathError.__init__Y   s<     g9:g-hZ 8_r   r   r   r"   s   @r   r1   r1   V   s    As 3  r   r1   N)r   
__future__r   r   r   r   googlecloudsdk.corer   r	   r   r$   r*   r1   r   r   r   <module>r8      s\    E &  % ' **J *5 &5 *E " r   