(self, exc_module, exc_cls_name, exc_args, text=None)
| 128 | exc_args = None |
| 129 | |
| 130 | def __init__(self, exc_module, exc_cls_name, exc_args, text=None): |
| 131 | safe_exc_args = ensure_serializable( |
| 132 | exc_args, lambda v: pickle.loads(pickle.dumps(v)) |
| 133 | ) |
| 134 | self.exc_module = exc_module |
| 135 | self.exc_cls_name = exc_cls_name |
| 136 | self.exc_args = safe_exc_args |
| 137 | self.text = text |
| 138 | super().__init__(exc_module, exc_cls_name, safe_exc_args, |
| 139 | text) |
| 140 | |
| 141 | def restore(self): |
| 142 | return create_exception_cls(self.exc_cls_name, |
nothing calls this directly
no test coverage detected