Public Member Functions | |
def | __enter__ |
def | __exit__ |
def | __init__ |
Public Attributes | |
active_cell | |
exception_handler | |
old_contexts |
Specialization of StackContext for exception handling. The supplied exception_handler function will be called in the event of an uncaught exception in this context. The semantics are similar to a try/finally clause, and intended use cases are to log an error, close a socket, or similar cleanup actions. The exc_info triple (type, value, traceback) will be passed to the exception_handler function. If the exception handler returns true, the exception will be consumed and will not be propagated to other exception handlers.
Definition at line 134 of file stack_context.py.
def tornado.stack_context.ExceptionStackContext.__init__ | ( | self, | |
exception_handler, | |||
_active_cell = None |
|||
) |
Definition at line 147 of file stack_context.py.
Definition at line 151 of file stack_context.py.
def tornado.stack_context.ExceptionStackContext.__exit__ | ( | self, | |
type, | |||
value, | |||
traceback | |||
) |
Definition at line 158 of file stack_context.py.
Definition at line 147 of file stack_context.py.
Definition at line 147 of file stack_context.py.
Definition at line 151 of file stack_context.py.