Create a TracebackException from an exception.
(cls, exc, *args, **kwargs)
| 1189 | |
| 1190 | @classmethod |
| 1191 | def from_exception(cls, exc, *args, **kwargs): |
| 1192 | """Create a TracebackException from an exception.""" |
| 1193 | return cls(type(exc), exc, exc.__traceback__, *args, **kwargs) |
| 1194 | |
| 1195 | @property |
| 1196 | def exc_type(self): |