σ
ΤΛήKc           @   s   d  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(   sX   Interface-specific exceptions

$Id: exceptions.py 110536 2010-04-06 02:59:44Z tseaver $
t   Invalidc           B   s   e  Z d  Z RS(   s    A specification is violated
    (   t   __name__t
   __module__t   __doc__(    (    (    s=   /usr/lib/python2.7/dist-packages/zope/interface/exceptions.pyR       s   t   DoesNotImplementc           B   s    e  Z d  Z d   Z d   Z RS(   s     This object does not implement c         C   s   | |  _  d  S(   N(   t	   interface(   t   selfR   (    (    s=   /usr/lib/python2.7/dist-packages/zope/interface/exceptions.pyt   __init__   s    c         C   s   d |  j  S(   Ns>   An object does not implement interface %(interface)s

        (   t   __dict__(   R   (    (    s=   /usr/lib/python2.7/dist-packages/zope/interface/exceptions.pyt   __str__   s    (   R   R   R   R   R	   (    (    (    s=   /usr/lib/python2.7/dist-packages/zope/interface/exceptions.pyR      s   	t   BrokenImplementationc           B   s    e  Z d  Z d   Z d   Z RS(   s0   An attribute is not completely implemented.
    c         C   s   | |  _  | |  _ d  S(   N(   R   t   name(   R   R   R   (    (    s=   /usr/lib/python2.7/dist-packages/zope/interface/exceptions.pyR   %   s    	c         C   s   d |  j  S(   Nst   An object has failed to implement interface %(interface)s

        The %(name)s attribute was not provided.
        (   R   (   R   (    (    s=   /usr/lib/python2.7/dist-packages/zope/interface/exceptions.pyR	   )   s    (   R   R   R   R   R	   (    (    (    s=   /usr/lib/python2.7/dist-packages/zope/interface/exceptions.pyR
   !   s   	t   BrokenMethodImplementationc           B   s    e  Z d  Z d   Z d   Z RS(   s-   An method is not completely implemented.
    c         C   s   | |  _  | |  _ d  S(   N(   t   methodt   mess(   R   R   R   (    (    s=   /usr/lib/python2.7/dist-packages/zope/interface/exceptions.pyR   3   s    	c         C   s   d |  j  S(   NsY   The implementation of %(method)s violates its contract
        because %(mess)s.
        (   R   (   R   (    (    s=   /usr/lib/python2.7/dist-packages/zope/interface/exceptions.pyR	   7   s    (   R   R   R   R   R	   (    (    (    s=   /usr/lib/python2.7/dist-packages/zope/interface/exceptions.pyR   /   s   	t   InvalidInterfacec           B   s   e  Z d  Z RS(   s'   The interface has invalid contents
    (   R   R   R   (    (    (    s=   /usr/lib/python2.7/dist-packages/zope/interface/exceptions.pyR   <   s   t   BadImplementsc           B   s   e  Z d  Z RS(   s   An implementation assertion is invalid

    because it doesn't contain an interface or a sequence of valid
    implementation assertions.
    (   R   R   R   (    (    (    s=   /usr/lib/python2.7/dist-packages/zope/interface/exceptions.pyR   @   s   N(	   R   t	   ExceptionR    R   R
   R   R   t	   TypeErrorR   (    (    (    s=   /usr/lib/python2.7/dist-packages/zope/interface/exceptions.pyt   <module>   s   
