
                         >   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      Z G d
 de      Z	 G d de      Z
 G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Zy)z7Common utility functions for sql errors and exceptions.    )absolute_import)division)unicode_literals)
exceptionsc                       e Zd ZdZy)Errorz"Base exception for all sql errors.N__name__
__module____qualname____doc__     ,lib/googlecloudsdk/api_lib/sql/exceptions.pyr   r      s    *r   r   c                       e Zd ZdZy)ArgumentErrorzCommand argument error.Nr	   r   r   r   r   r      s    r   r   c                       e Zd ZdZy)CancelledErrorz8An exception raised if the user chooses not to continue.Nr	   r   r   r   r   r           @r   r   c                       e Zd ZdZy)OperationErrorz8An exception raised if an operation encounters an error.Nr	   r   r   r   r   r   $   r   r   r   c                       e Zd ZdZy)ResourceNotFoundErrorzEAn exception raised when a resource could not be found by the server.Nr	   r   r   r   r   r   (   s    Mr   r   c                       e Zd ZdZy)SqlClientNotFoundErrorzHAn exception raised when a locally installed sql client cannot be found.Nr	   r   r   r   r   r   ,   s    Pr   r   c                       e Zd ZdZy)ConnectionErrorzMAn exception raised when a connection could not be made to a sql instance.
  Nr	   r   r   r   r   r   0   s    r   r   c                       e Zd ZdZy)UpdateErrorzFAn error raised when a connection could not be made to a sql instance.Nr	   r   r   r   r   r   5   s    Nr   r   c                       e Zd ZdZy)CloudSqlProxyErrorz8An error raised when the Cloud SQL Proxy fails to start.Nr	   r   r   r   r!   r!   9   r   r   r!   c                       e Zd ZdZy)InvalidStateErrorzAAn error raised when a Cloud SQL resource is in an invalid state.Nr	   r   r   r   r#   r#   =   s    Ir   r#   c                       e Zd ZdZy)SqlProxyNotFoundz(An error raised when no sql proxy found.Nr	   r   r   r   r%   r%   A   s    0r   r%   N)r   
__future__r   r   r   googlecloudsdk.corer   r   r   r   r   r   r   r   r   r!   r#   r%   r   r   r   <module>r(      s    > &  ' *+J + E  AU AAU ANE NQU Qe 
O% OA AJ J1u 1r   