Package gofer :: Package rmi :: Module dispatcher :: Class Return
[hide private]
[frames] | no frames]

Class Return

source code

       object --+        
                |        
messaging.Options --+    
                    |    
   messaging.Envelope --+
                        |
                       Return

Return envelope.

Instance Methods [hide private]
bool
succeeded(self)
Test whether the return indicates success.
source code
bool
failed(self)
Test whether the return indicates failure.
source code

Inherited from messaging.Envelope: dump, load

Inherited from messaging.Options: __getattr__, __getitem__, __iadd__, __init__, __iter__, __len__, __repr__, __setitem__, __str__

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

Class Methods [hide private]
Return
succeed(cls, x)
Return successful
source code
Return
exception(cls)
Return raised exception.
source code
Return
__exception(cls)
Return raised exception.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

succeed(cls, x)
Class Method

source code 

Return successful

Parameters:
  • x (any) - The returned value.
Returns: Return
A return envelope.

exception(cls)
Class Method

source code 

Return raised exception.

Returns: Return
A return envelope.

succeeded(self)

source code 

Test whether the return indicates success.

Returns: bool
True when indicates success.

failed(self)

source code 

Test whether the return indicates failure.

Returns: bool
True when indicates failure.

__exception(cls)
Class Method

source code 

Return raised exception.

Returns: Return
A return envelope.