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

List of all members.

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

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 164 of file stack_context.py.


Constructor & Destructor Documentation

def tornado.stack_context.ExceptionStackContext.__init__ (   self,
  exception_handler 
)

Definition at line 177 of file stack_context.py.


Member Function Documentation

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.

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.


Member Data Documentation

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.


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


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Thu Aug 27 2015 14:50:40