1
try:
...........
# this exception could be thrown from another method, or just a plain Exception
raise xxxException({'code': 400, 'error': 'Very common message'})
except xxxException, e:
ret = {'code':'The code in e', 'error': 'some specific information'}
raise xxxException(ret)
...........................
我怎么能提取原始异常的一些信息,并同时添加自己的信息?
谢谢。
更好地利用修改它:' – navyad 2014-09-12 13:18:21