
                         >   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g)z7Common utility functions for sql errors and exceptions.    )absolute_import)division)unicode_literals)
exceptionsc                       \ rS rSrSrSrg)Error   z"Base exception for all sql errors. N__name__
__module____qualname____firstlineno____doc____static_attributes__r
       ,lib/googlecloudsdk/api_lib/sql/exceptions.pyr   r      s    *r   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)CancelledError    z8An exception raised if the user chooses not to continue.r
   Nr   r
   r   r   r   r           @r   r   c                       \ rS rSrSrSrg)OperationError$   z8An exception raised if an operation encounters an error.r
   Nr   r
   r   r   r   r   $   r   r   r   c                       \ rS rSrSrSrg)ResourceNotFoundError(   zEAn exception raised when a resource could not be found by the server.r
   Nr   r
   r   r   r   r   (   s    Mr   r   c                       \ rS rSrSrSrg)SqlClientNotFoundError,   zHAn exception raised when a locally installed sql client cannot be found.r
   Nr   r
   r   r   r"   r"   ,   s    Pr   r"   c                       \ rS rSrSrSrg)ConnectionError0   zMAn exception raised when a connection could not be made to a sql instance.
  r
   Nr   r
   r   r   r%   r%   0   s    r   r%   c                       \ rS rSrSrSrg)UpdateError5   zFAn error raised when a connection could not be made to a sql instance.r
   Nr   r
   r   r   r(   r(   5   s    Nr   r(   c                       \ rS rSrSrSrg)CloudSqlProxyError9   z8An error raised when the Cloud SQL Proxy fails to start.r
   Nr   r
   r   r   r+   r+   9   r   r   r+   c                       \ rS rSrSrSrg)InvalidStateError=   zAAn error raised when a Cloud SQL resource is in an invalid state.r
   Nr   r
   r   r   r.   r.   =   s    Ir   r.   c                       \ rS rSrSrSrg)SqlProxyNotFoundA   z(An error raised when no sql proxy found.r
   Nr   r
   r   r   r1   r1   A   s    0r   r1   N)r   
__future__r   r   r   googlecloudsdk.corer   r   r   r   r   r   r"   r%   r(   r+   r.   r1   r
   r   r   <module>r5      s    > &  ' *+J + E  AU AAU ANE NQU Qe 
O% OA AJ J1u 1r   