示例#1
0
 def union((s_exc1, s_exc2)):
     return SomeException(s_exc1.classdefs | s_exc2.classdefs)
示例#2
0
 def new_exception(self, exc_classes):
     clsdefs = {self.getuniqueclassdef(cls) for cls in exc_classes}
     return SomeException(clsdefs)