Python ErrorHandling メモ
code:python
import sys
class Hoge(Exception):
HOGE = 'hoge'
def __init__(self, msg):
self.msg = msg
try:
raise Hoge(msg='testtest')
except:
cls, instance, trace = sys.exc_info()
from traceback import format_tb
format_tb(trace)