#NEWLINE# def verifyClass( interfaceCls , cls ) : #NEWLINE# #INDENT# ' Verifies if the class implements the specified interface. Raises an\n        InterfaceError if this is not the case.\n\n        @param interfaceCls:    Interface class which the class should\n                                implement.\n        @type  interfaceCls:    zope.interface.Interface\n\n        @param cls:             Class which should be verified.\n\n        @raise:                 rce.util.interface.InterfaceError\n    ' #NEWLINE# try : #NEWLINE# #INDENT# verify . verifyClass ( interfaceCls , cls ) #NEWLINE# #UNINDENT# except Invalid as e : #NEWLINE# #INDENT# raise InterfaceError ( 'Verification of the class of type "{0}" failed: {1}' . format ( cls . __name__ , e ) )