Public Member Functions | Public Attributes
tornado.stack_context.ExceptionStackContext Class Reference

List of all members.

Public Member Functions

def __enter__
def __exit__
def __init__

Public Attributes

 active_cell
 exception_handler
 old_contexts

Detailed Description

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.


Constructor & Destructor Documentation

def tornado.stack_context.ExceptionStackContext.__init__ (   self,
  exception_handler,
  _active_cell = None 
)

Definition at line 147 of file stack_context.py.


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this class was generated from the following file:


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Mon Oct 6 2014 06:58:14