parameters: (cls, exc, *args, **kwargs)
return_statement: return cls(type(exc), exc, exc.__traceback__, *args, **kwargs)
docstring: Create a TracebackException from an exception.
docstring_summary: Create a TracebackException from an exception.
docstring_tokens: Create a TracebackException from an exception .
function: def from_exception(cls, exc, *args, **kwargs):
          """Create a TracebackException from an exception."""
          return cls(type(exc), exc, exc.__traceback__, *args, **kwargs)
function_tokens: def from_exception ( cls , exc , * args , * * kwargs ) : return cls ( type ( exc ) , exc , exc . __traceback__ , * args , * * kwargs )