beanmachine.ppl.compiler.internal_error module

Error reporting for internal compiler errors

exception beanmachine.ppl.compiler.internal_error.InternalError(message: str, original_exception: Optional[Exception] = None)

Bases: Exception

An exception class for internal compiler errors

original_exception: Optional[Exception]
exception beanmachine.ppl.compiler.internal_error.LiftedCompilationError(source: str, ast: ast.AST, original_exception: Exception)

Bases: beanmachine.ppl.compiler.internal_error.InternalError

An exception class for internal compiler errors when compiling the lifted code.

ast: ast.AST
source: str