The StackSummary is an iterable container holding FrameSummary instances.
Each FrameSummary describes a frame of the stack, including information about where in the program source files the execution context is.
The TracebackException class is a high-level interface for building a StackSummary while processing a traceback.
- sys.exc_info()
- 返回当前stack and thread正在处理的异常(type, value, traceback)
- type :异常类型
- value:异常对象
- traceback gets a traceback object (see the Reference Manual) which encapsulates the call stack at the point where the exception originally occurred.