Package multi :: Module result_commands :: Class Result_exception
[hide private]
[frames] | no frames]

Class Result_exception

source code


Return and raise an exception from the salve processor.

Instance Methods [hide private]
 
__init__(self, processor, exception, completed=True)
Initialise the result command with an exception.
source code
 
run(self, processor, memo)
Raise the exception from the Slave_processor.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]

Inherited from misc.Result: completed, memo_id, rank

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, processor, exception, completed=True)
(Constructor)

source code 

Initialise the result command with an exception.

Parameters:
  • exception (Exception instance) - An exception that was raised on the slave processor (note the real exception will be wrapped in a Capturing_exception.
Overrides: object.__init__

run(self, processor, memo)

source code 

Raise the exception from the Slave_processor.

Parameters:
  • processor - The master processor that queued the original Slave_command.
  • memo - A memo that was registered when the original slave command was placed on the queue. This provides local storage on the master.
Overrides: Result_command.run