3 [@shdZGdddeZGdddeZGdddeZGdddeZGd d d eZGd d d eZd S)zInterface-specific exceptions c@seZdZdZdS)Invalidz A specification is violated N)__name__ __module__ __qualname____doc__rr"/usr/lib64/python3.6/exceptions.pyrsrc@s eZdZdZddZddZdS)DoesNotImplementz This object does not implement cCs ||_dS)N) interface)selfr rrr__init__szDoesNotImplement.__init__cCs d|jS)Nz>An object does not implement interface %(interface)s )__dict__)r rrr__str__szDoesNotImplement.__str__N)rrrrr r rrrrrsrc@s eZdZdZddZddZdS)BrokenImplementationz0An attribute is not completely implemented. cCs||_||_dS)N)r name)r r rrrrr #szBrokenImplementation.__init__cCs d|jS)NztAn object has failed to implement interface %(interface)s The %(name)s attribute was not provided. )r )r rrrr 'szBrokenImplementation.__str__N)rrrrr r rrrrrsrc@s eZdZdZddZddZdS)BrokenMethodImplementationz-An method is not completely implemented. cCs||_||_dS)N)methodmess)r rrrrrr 1sz#BrokenMethodImplementation.__init__cCs d|jS)NzYThe implementation of %(method)s violates its contract because %(mess)s. )r )r rrrr 5sz"BrokenMethodImplementation.__str__N)rrrrr r rrrrr-src@seZdZdZdS)InvalidInterfacez'The interface has invalid contents N)rrrrrrrrr:src@seZdZdZdS) BadImplementszAn implementation assertion is invalid because it doesn't contain an interface or a sequence of valid implementation assertions. N)rrrrrrrrr>srN) r Exceptionrrrrr TypeErrorrrrrrs