MCPcopy Index your code
hub / github.com/python/cpython / from_exception

Method from_exception

Lib/traceback.py:1245–1247  ·  view source on GitHub ↗

Create a TracebackException from an exception.

(cls, exc, *args, **kwargs)

Source from the content-addressed store, hash-verified

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):

Calls 1

clsClass · 0.50