spudplate
Template scaffolding compiler for spudlang .spud files
Loading...
Searching...
No Matches
spudplate::RuntimeError Class Reference

Exception thrown when the interpreter encounters a runtime failure. More...

#include <interpreter.h>

Inheritance diagram for spudplate::RuntimeError:

Public Member Functions

 RuntimeError (const std::string &message, int line, int column)
 Construct an error tagged with the offending source position.
 
int line () const
 1-based line number of the offending statement or expression.
 
int column () const
 1-based column number of the offending statement or expression.
 

Detailed Description

Exception thrown when the interpreter encounters a runtime failure.

Mirrors ParseError and SemanticError in shape: carries the source line and column of the offending node alongside a bare message string.