
Gh\c           @   s   d  e  f d     YZ d S(   t   OfflineImapErrorc           B   s<   e  Z d  Z d d d     YZ d d  Z e d    Z RS(   s+   An Error during offlineimap synchronizationt   ERRORc           B   s#   e  Z d  Z d \ Z Z Z Z Z RS(   s{  Severity level of an Exception

        * **MESSAGE**:  Abort the current message, but continue with folder
        * **FOLDER_RETRY**: Error syncing folder, but do retry
        * **FOLDER**:   Abort folder sync, but continue with next folder
        * **REPO**:     Abort repository sync, continue with next account
        * **CRITICAL**: Immediately exit offlineimap
        i    i
   i   i   i   (   i    i
   i   i   i   (   t   __name__t
   __module__t   __doc__t   MESSAGEt   FOLDER_RETRYt   FOLDERt   REPOt   CRITICAL(    (    (    s+   /usr/share/offlineimap/offlineimap/error.pyR      s   c         C   s,   | |  _  | |  _ t t |   j |  d S(   s   
        :param reason: Human readable string suitable for logging

        :param severity: denoting which operations should be
               aborted. E.g. a ERROR.MESSAGE can occur on a faulty
               message, but a ERROR.REPO occurs when the server is
               offline.

        :param errcode: optional number denoting a predefined error
               situation (which let's us exit with a predefined exit
               value). So far, no errcodes have been defined yet.

        :type severity: OfflineImapError.ERROR valueN(   t   errcodet   severityt   superR    t   __init__(   t   selft   reasonR   R
   (    (    s+   /usr/share/offlineimap/offlineimap/error.pyR      s    		c         C   s   |  j  d S(   Ni    (   t   args(   R   (    (    s+   /usr/share/offlineimap/offlineimap/error.pyR   %   s    (    N(   R   R   R   R   t   NoneR   t   propertyR   (    (    (    s+   /usr/share/offlineimap/offlineimap/error.pyR       s   N(   t	   ExceptionR    (    (    (    s+   /usr/share/offlineimap/offlineimap/error.pyt   <module>   t    