MCPcopy
hub / github.com/celery/celery / create_exception_cls

Function create_exception_cls

celery/utils/serialization.py:73–77  ·  view source on GitHub ↗

Dynamically create an exception class.

(name, module, parent=None)

Source from the content-addressed store, hash-verified

71
72
73def create_exception_cls(name, module, parent=None):
74 """Dynamically create an exception class."""
75 if not parent:
76 parent = Exception
77 return subclass_exception(name, parent, module)
78
79
80def ensure_serializable(items, encoder):

Callers 2

exception_to_pythonMethod · 0.90
restoreMethod · 0.85

Calls 1

subclass_exceptionFunction · 0.85

Tested by

no test coverage detected