Create a TracebackException from an exception.
(cls, exc, *args, **kwargs)
| 1243 | |
| 1244 | @classmethod |
| 1245 | def from_exception(cls, exc, *args, **kwargs): |
| 1246 | """Create a TracebackException from an exception.""" |
| 1247 | return cls(type(exc), exc, exc.__traceback__, *args, **kwargs) |
| 1248 | |
| 1249 | @property |
| 1250 | def exc_type(self): |