
|ÍWÏ  ã               @   sŽ   d  Z  Gd d „  d e ƒ Z Gd d „  d e ƒ Z Gd d „  d e ƒ Z Gd d „  d e ƒ Z Gd	 d
 „  d
 e ƒ Z Gd d „  d e ƒ Z d S)zInterface-specific exceptions
c               @   s   e  Z d  Z d Z d S)ÚInvalidz A specification is violated
    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   ú;/usr/lib/python3/dist-packages/zope/interface/exceptions.pyr      s   r   c               @   s.   e  Z d  Z d Z d d „  Z d d „  Z d S)ÚDoesNotImplementz  This object does not implement c             C   s   | |  _  d  S)N)Ú	interface)Úselfr	   r   r   r   Ú__init__   s    zDoesNotImplement.__init__c             C   s   d |  j  S)Nz>An object does not implement interface %(interface)s

        )Ú__dict__)r
   r   r   r   Ú__str__   s    zDoesNotImplement.__str__N)r   r   r   r   r   r   r   r   r   r   r      s   r   c               @   s.   e  Z d  Z d Z d d „  Z d d „  Z d S)ÚBrokenImplementationz0An attribute is not completely implemented.
    c             C   s   | |  _  | |  _ d  S)N)r	   Úname)r
   r	   r   r   r   r   r   #   s    	zBrokenImplementation.__init__c             C   s   d |  j  S)NztAn object has failed to implement interface %(interface)s

        The %(name)s attribute was not provided.
        )r   )r
   r   r   r   r   '   s    zBrokenImplementation.__str__N)r   r   r   r   r   r   r   r   r   r   r      s   r   c               @   s.   e  Z d  Z d Z d d „  Z d d „  Z d S)ÚBrokenMethodImplementationz-An method is not completely implemented.
    c             C   s   | |  _  | |  _ d  S)N)ÚmethodÚmess)r
   r   r   r   r   r   r   1   s    	z#BrokenMethodImplementation.__init__c             C   s   d |  j  S)NzYThe implementation of %(method)s violates its contract
        because %(mess)s.
        )r   )r
   r   r   r   r   5   s    z"BrokenMethodImplementation.__str__N)r   r   r   r   r   r   r   r   r   r   r   -   s   r   c               @   s   e  Z d  Z d Z d S)ÚInvalidInterfacez'The interface has invalid contents
    N)r   r   r   r   r   r   r   r   r   :   s   r   c               @   s   e  Z d  Z d Z d S)ÚBadImplementszŽAn implementation assertion is invalid

    because it doesn't contain an interface or a sequence of valid
    implementation assertions.
    N)r   r   r   r   r   r   r   r   r   >   s   r   N)	r   Ú	Exceptionr   r   r   r   r   Ú	TypeErrorr   r   r   r   r   Ú<module>   s   
