def create_exception_cls(name, module, parent=None):
    if not parent:
        parent = Exception
    return subclass_exception(name, parent, module)
Dynamically create an exception class.
dataset/ETHPy150Open kmike/tornado-slacker/slacker/serialization.py/create_exception_cls