Package lib :: Module errors :: Class RelaxArgNotNoneError
[hide private]
[frames] | no frames]

Class RelaxArgNotNoneError

source code


Instance Methods [hide private]
 
__init__(self, name, value)
A default initialisation and error message formatting method.
source code

Inherited from BaseError: __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__

Class Variables [hide private]

Inherited from BaseArgError: list_types, simple_types

Properties [hide private]

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, value)
(Constructor)

source code 

A default initialisation and error message formatting method.

Parameters:
  • name - The name of the argument.
  • value - The argument's value.
  • size - The fixed size for list types.
  • dim - The expected dimensionality of the argument.
  • rank - The rank for list or array types.
  • can_be_none - A flag specifying if the argument can be None. This will tag the text ', or None' to the end of the RelaxError.
Overrides: object.__init__
(inherited documentation)