def create_exception_cls(name, module, parent=None):
 if (not parent):
  parent = Exception
 return subclass_exception(name, parent, module)

def create_exception_cls ( name , module , parent = None ) : if ( not parent ) : parent = Exception return subclass_exception ( name , parent , module )
dynamically create an exception class .