Package multi :: Module misc :: Class Capturing_exception
[hide private]
[frames] | no frames]

Class Capturing_exception

source code


A wrapper exception for an exception captured on a slave processor.

The wrapper will remember the stack trace on the remote machine and when raised and caught has a string that includes the remote stack trace, which will be displayed along with the stack trace on the master.

Instance Methods [hide private]
 
__init__(self, exc_info=None, rank='unknown', name='unknown')
Initialise the wrapping exception.
source code
str
__str__(self)
Get the string describing this exception.
source code

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details [hide private]

__init__(self, exc_info=None, rank='unknown', name='unknown')
(Constructor)

source code 

Initialise the wrapping exception.

Parameters:
  • exc_info (tuple) - Exception information as produced by sys.exc_info().
  • rank (int) - The rank of the processor on which the exception was raised. The value is always greater than 1.
  • name (str) - The name of the processor on which the exception was raised as returned by processor.get_name().
Overrides: object.__init__

To Do: Would it be easier to pass a processor here.

__str__(self)
(Informal representation operator)

source code 

Get the string describing this exception.

Returns: str
The string describing this exception.
Overrides: object.__str__