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

Exception thrown when the semantic validator finds a rule violation. More...

#include <validator.h>

Inheritance diagram for spudplate::SemanticError:

Public Member Functions

 SemanticError (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 semantic validator finds a rule violation.

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