(cls, exc, *args, **kwargs)
return cls(type(exc), exc, exc.__traceback__, *args, **kwargs)
Create a TracebackException from an exception.
Create a TracebackException from an exception.
Create a TracebackException from an exception .
def from_exception(cls, exc, *args, **kwargs):
        """Create a TracebackException from an exception."""
        return cls(type(exc), exc, exc.__traceback__, *args, **kwargs)
def from_exception ( cls , exc , * args , * * kwargs ) : return cls ( type ( exc ) , exc , exc . __traceback__ , * args , * * kwargs )