pass exception class and traceback to exception handlers