
    M                     J   S r SSKJr  SSKJr  SSKJ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 " S S\5      r " S S\5      r " S S\5      rg) z5Exceptions for the Cloud SDK persistent cache module.    )absolute_import)division)unicode_literalsc                       \ rS rSrSrSrg)Error   z)Base for all persistent cache exceptions. N__name__
__module____qualname____firstlineno____doc____static_attributes__r	       +lib/googlecloudsdk/core/cache/exceptions.pyr   r      s    1r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )CacheVersionMismatch   zCache version mismatch.c                 D   > [         [        U ]  U5        X l        X0l        g )N)superr   __init__actual	requested)selfmessager   r   	__class__s       r   r   CacheVersionMismatch.__init__   s    	
.w7KNr   )r   r   )r   r   r   r   r   r   r   __classcell__)r   s   @r   r   r      s     r   r   c                       \ rS rSrSrSrg)CacheInvalid%   zCach object is invalid.r	   Nr
   r	   r   r   r!   r!   %   s    r   r!   c                       \ rS rSrSrSrg)CacheNameInvalid)   zName is not a valid cache name.r	   Nr
   r	   r   r   r$   r$   )       'r   r$   c                       \ rS rSrSrSrg)CacheNotFound-   zCache not found.r	   Nr
   r	   r   r   r(   r(   -   s    r   r(   c                       \ rS rSrSrSrg)CacheTableDeleted1   zCache table deleted.r	   Nr
   r	   r   r   r+   r+   1       r   r+   c                       \ rS rSrSrSrg)CacheTableExpired5   zCache table expired.r	   Nr
   r	   r   r   r/   r/   5   r-   r   r/   c                       \ rS rSrSrSrg)CacheTableRestricted9   zCache table is restricted.r	   Nr
   r	   r   r   r2   r2   9   s    "r   r2   c                       \ rS rSrSrSrg)CacheTableNameInvalid=   zCache table invalid table name.r	   Nr
   r	   r   r   r5   r5   =   r&   r   r5   c                       \ rS rSrSrSrg)CacheTableColumnsInvalidA   zCache table columns invalid.r	   Nr
   r	   r   r   r8   r8   A   s    $r   r8   c                       \ rS rSrSrSrg)CacheTableKeysInvalidE   zCache table keys invalid.r	   Nr
   r	   r   r   r;   r;   E   s    !r   r;   c                       \ rS rSrSrSrg)CacheTableNotFoundI   zCache table not found.r	   Nr
   r	   r   r   r>   r>   I   s    r   r>   c                       \ rS rSrSrSrg)CacheTableRowSizeInvalidM   z#Cache table row has incorrect size.r	   Nr
   r	   r   r   rA   rA   M   s    +r   rA   N)r   
__future__r   r   r   	Exceptionr   r   r!   r$   r(   r+   r/   r2   r5   r8   r;   r>   rA   r	   r   r   <module>rE      s     < '  '2I 25  5  (u (E   #5 #(E (%u %"E " ,u ,r   