Dynamically create an exception class.
(name, module, parent=None)
| 71 | |
| 72 | |
| 73 | def 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 | |
| 80 | def ensure_serializable(items, encoder): |
no test coverage detected