ó
ŞK'Rc           @   s   d  d l  m Z d e f d     YZ d e f d     YZ d e f d     YZ d e f d	     YZ d
 e f d     YZ d e f d     YZ d S(   i   (   t	   constantst	   BaseErrorc           B   s   e  Z d  Z RS(   s:   Any exception thrown by the library is inhereted from this(   t   __name__t
   __module__t   __doc__(    (    (    sE   /afs/sipb.mit.edu/user/vasilvv/arch/amd64_deb70/bin/pymoira/errors.pyR   	   s   t   ConnectionErrorc           B   s   e  Z d  Z RS(   s   An error which prevents the client from having or continuing a meaningful
    dialogue with a server (parsing failure, connection failure, etc)(   R   R   R   (    (    (    sE   /afs/sipb.mit.edu/user/vasilvv/arch/amd64_deb70/bin/pymoira/errors.pyR      s   t
   MoiraErrorc           B   s   e  Z d  Z d   Z RS(   sH   An error returned from Moira server itself which has a Moira error code.c         C   sN   | |  _  | t j k r6 t j |  d t j |  n t j |  d |  d  S(   Ns   Moira error: %ss   Unknown Moira error (code %i)(   t   codeR    t   errorsR   t   __init__(   t   selfR   (    (    sE   /afs/sipb.mit.edu/user/vasilvv/arch/amd64_deb70/bin/pymoira/errors.pyR	      s    	(   R   R   R   R	   (    (    (    sE   /afs/sipb.mit.edu/user/vasilvv/arch/amd64_deb70/bin/pymoira/errors.pyR      s   t   MoiraUnavailableErrorc           B   s   e  Z d  Z RS(   s5   An error raised in case when Moira MOTD is not empty.(   R   R   R   (    (    (    sE   /afs/sipb.mit.edu/user/vasilvv/arch/amd64_deb70/bin/pymoira/errors.pyR      s   t	   UserErrorc           B   s   e  Z d  Z RS(   s;   An error related to Moira but not returned from the server.(   R   R   R   (    (    (    sE   /afs/sipb.mit.edu/user/vasilvv/arch/amd64_deb70/bin/pymoira/errors.pyR   $   s   t   AuthenticationErrorc           B   s   e  Z d  Z RS(   s/   An error related to the authentication process.(   R   R   R   (    (    (    sE   /afs/sipb.mit.edu/user/vasilvv/arch/amd64_deb70/bin/pymoira/errors.pyR   )   s   N(	   t    R    t	   ExceptionR   R   R   R   R   R   (    (    (    sE   /afs/sipb.mit.edu/user/vasilvv/arch/amd64_deb70/bin/pymoira/errors.pyt   <module>   s   