Public Member Functions | |
def | __enter__ |
def | __exit__ |
def | __init__ |
def | exit |
Public Attributes | |
active | |
exception_handler | |
new_contexts | |
old_contexts | |
Private Member Functions | |
def | _deactivate |
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 164 of file stack_context.py.
def tornado.stack_context.ExceptionStackContext.__init__ | ( | self, | |
exception_handler | |||
) |
Definition at line 177 of file stack_context.py.
Definition at line 188 of file stack_context.py.
def tornado.stack_context.ExceptionStackContext.__exit__ | ( | self, | |
type, | |||
value, | |||
traceback | |||
) |
Definition at line 195 of file stack_context.py.
def tornado.stack_context.ExceptionStackContext._deactivate | ( | self | ) | [private] |
Definition at line 181 of file stack_context.py.
def tornado.stack_context.ExceptionStackContext.exit | ( | self, | |
type, | |||
value, | |||
traceback | |||
) |
Definition at line 184 of file stack_context.py.
Definition at line 177 of file stack_context.py.
Definition at line 177 of file stack_context.py.
Definition at line 188 of file stack_context.py.
Definition at line 188 of file stack_context.py.