Package elisa :: Package core :: Package utils :: Module signal :: Class WrongArgument
[hide private]
[frames] | no frames]

Class WrongArgument

source code


Exception raised by Signal when the developer tries to emit wrong types values with the Signal.

Instance Methods [hide private]
 
__init__(self, arg, expected_type, position)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
string
__str__(self)
Textual representation of the Exception
source code

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__

Inherited from object: __hash__, __reduce_ex__

Instance Variables [hide private]
object arg
the value of the wrongly typed object
  expected_type
the expcected type for the argument, given at Signal creation
int or None position
position of the argument in the arguments list, if it's not a keyword argument
Properties [hide private]

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details [hide private]

__init__(self, arg, expected_type, position)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: exceptions.Exception.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
Textual representation of the Exception
Returns: string
Overrides: exceptions.BaseException.__str__