
                            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g)z7Common utility functions for sql errors and exceptions.    )
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)ConnectionError-   zMAn exception raised when a connection could not be made to a sql instance.
  r   Nr   r   r   r   r"   r"   -   s    r   r"   c                       \ rS rSrSrSrg)UpdateError2   zFAn error raised when a connection could not be made to a sql instance.r   Nr   r   r   r   r%   r%   2   s    Nr   r%   c                       \ rS rSrSrSrg)CloudSqlProxyError6   z8An error raised when the Cloud SQL Proxy fails to start.r   Nr   r   r   r   r(   r(   6   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)SqlProxyNotFound>   z(An error raised when no sql proxy found.r   Nr   r   r   r   r.   r.   >   s    0r   r.   N)r   googlecloudsdk.corer   r   r   r   r   r   r   r"   r%   r(   r+   r.   r   r   r   <module>r1      s    > ++J + E  AU AAU ANE NQU Qe 
O% OA AJ J1u 1r   