
    M                     J   d Z ddlmZ ddlmZ ddlm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 G d de      Z G d de      Z G d de      Zy) z5Exceptions for the Cloud SDK persistent cache module.    )absolute_import)division)unicode_literalsc                       e Zd ZdZy)Errorz)Base for all persistent cache exceptions.N__name__
__module____qualname____doc__     +lib/googlecloudsdk/core/cache/exceptions.pyr   r      s    1r   r   c                   "     e Zd ZdZ fdZ xZS )CacheVersionMismatchzCache version mismatch.c                 H    t         t        |   |       || _        || _        y )N)superr   __init__actual	requested)selfmessager   r   	__class__s       r   r   zCacheVersionMismatch.__init__   s!    	
.w7DKDNr   )r	   r
   r   r   r   __classcell__)r   s   @r   r   r      s     r   r   c                       e Zd ZdZy)CacheInvalidzCach object is invalid.Nr   r   r   r   r   r   %   s    r   r   c                       e Zd ZdZy)CacheNameInvalidzName is not a valid cache name.Nr   r   r   r   r   r   )       'r   r   c                       e Zd ZdZy)CacheNotFoundzCache not found.Nr   r   r   r   r!   r!   -   s    r   r!   c                       e Zd ZdZy)CacheTableDeletedzCache table deleted.Nr   r   r   r   r#   r#   1       r   r#   c                       e Zd ZdZy)CacheTableExpiredzCache table expired.Nr   r   r   r   r&   r&   5   r$   r   r&   c                       e Zd ZdZy)CacheTableRestrictedzCache table is restricted.Nr   r   r   r   r(   r(   9   s    "r   r(   c                       e Zd ZdZy)CacheTableNameInvalidzCache table invalid table name.Nr   r   r   r   r*   r*   =   r   r   r*   c                       e Zd ZdZy)CacheTableColumnsInvalidzCache table columns invalid.Nr   r   r   r   r,   r,   A   s    $r   r,   c                       e Zd ZdZy)CacheTableKeysInvalidzCache table keys invalid.Nr   r   r   r   r.   r.   E   s    !r   r.   c                       e Zd ZdZy)CacheTableNotFoundzCache table not found.Nr   r   r   r   r0   r0   I   s    r   r0   c                       e Zd ZdZy)CacheTableRowSizeInvalidz#Cache table row has incorrect size.Nr   r   r   r   r2   r2   M   s    +r   r2   N)r   
__future__r   r   r   	Exceptionr   r   r   r   r!   r#   r&   r(   r*   r,   r.   r0   r2   r   r   r   <module>r5      s     < '  '2I 25  5  (u (E   #5 #(E (%u %"E " ,u ,r   