Package lepl :: Package matchers :: Module error :: Class Error
[hide private]
[frames] | no frames]

Class Error

source code


Subclass Node and Python's SyntaxError to provide an AST node that can be raised as an error via node_throw or sexpr_throw.

Create with make_error().

Instance Methods [hide private]
 
__init__(self, msg, kargs)
Expects a single list of arguments, as will be received if invoked with the > operator.
source code
 
__str__(self)
str(x)
source code

Inherited from support.node.Node: __bool__, __dir__, __getitem__, __iter__, __len__, __nonzero__, __repr__

Inherited from exceptions.SyntaxError: __new__

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

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from exceptions.SyntaxError: filename, lineno, msg, offset, print_file_and_line, text

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details [hide private]

__init__(self, msg, kargs)
(Constructor)

source code 
Expects a single list of arguments, as will be received if invoked with the > operator.
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)