mildew.exceptions

This module implements the exception classes that can be thrown by the script. These should be caught and printed to provide meaningful information about why an exception was thrown while parsing or executing a script.

Members

Classes

ScriptCompileException
class ScriptCompileException

This exception is thrown by the Lexer and Parser when an error occurs during tokenizing or parsing.

ScriptRuntimeException
class ScriptRuntimeException

This exception is generated by the new keyword and stored in a VisitResult that propagates through the call stack so that traceback line numbers in the script can be added to it. It is only thrown when the calls get back to Interpreter.evaluate. This exception can also be "thrown" and caught by the script.

Meta