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

Module error

source code

Error handling (generating an error while parsing).

This is not that complete or well thought through; it needs to be revised.

Classes [hide private]
  Error
Subclass Node and Python's SyntaxError to provide an AST node that can be raised as an error via node_throw or sexpr_throw.
Functions [hide private]
 
make_error(msg)
Create an error node using a fmt string.
source code
 
syntax_error_kargs(stream_in, stream_out, results)
Helper function for constructing fmt dictionary.
source code
 
raise_error(msg)
As make_error(), but also raise the result.
source code
Function Details [hide private]

make_error(msg)

source code 

Create an error node using a fmt string.

Invoke as ** make_error('bad results: {results}'), for example.