Package omeroweb :: Package webclient :: Module webclient_gateway :: Class OmeroWebSafeCallWrapper
[hide private]
[frames] | no frames]

Class OmeroWebSafeCallWrapper

source code


Function or method wrapper that handles Ice.ObjectNotExistException by re-creating the server side proxy.

Instance Methods [hide private]
 
handle_exception(self, e, *args, **kwargs)
Exception handler that is expected to be overridden by sub-classes.
source code

Inherited from omero.gateway.OmeroGatewaySafeCallWrapper: __call__, __init__, debug

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

handle_exception(self, e, *args, **kwargs)

source code 

Exception handler that is expected to be overridden by sub-classes. The expected behaviour is either to handle a type of exception and return the server side result or to raise the already thrown exception. The calling context is an except block and the original *args and **kwargs from the wrapped function or method are provided to allow re-execution of the original.

Parameters:
  • e - The exception that has already been raised.
Overrides: omero.gateway.OmeroGatewaySafeCallWrapper.handle_exception
(inherited documentation)