Package dlinklist :: Class FunctionException
[hide private]
[frames] | no frames]

Class FunctionException

source code


Raised if the Return.NORMAL value is not returned by a C function.

Instance Methods [hide private]
 
__init__(self, msg, retval=0)
Call the BaseLinklistException constructor and sets the Return value.
source code
int
getRetval(self)
Get the Return value.
source code

Inherited from BaseLinklistException: __str__

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, msg, retval=0)
(Constructor)

source code 

Call the BaseLinklistException constructor and sets the Return value. The default is Return.NORMAL if no return value is provided.

Parameters:
  • msg (str) - The message to return when raised.
  • retval (int) - One of the enumerated objects from the Return class.
Overrides: object.__init__

getRetval(self)

source code 

Get the Return value.

Returns: int
An enumerated object from the Return class.