|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Exception class for parsing errors with location information. More...
#include <parse_utils.H>
Public Member Functions | |
| ParseError (const std::string &message, const SourceLocation &location) | |
| Construct a parse error with message and location. | |
| ParseError (const std::string &message) | |
| Construct a parse error with message only. | |
| const SourceLocation & | location () const |
| Get the source location of the error. | |
Private Attributes | |
| SourceLocation | loc |
Exception class for parsing errors with location information.
Extends std::runtime_error to include source location where the error occurred, enabling precise error messages.
Definition at line 652 of file parse_utils.H.
|
inline |
Construct a parse error with message and location.
| message | Error description |
| location | Where the error occurred |
Definition at line 662 of file parse_utils.H.
|
inlineexplicit |
Construct a parse error with message only.
| message | Error description (uses current global position) |
Definition at line 671 of file parse_utils.H.
|
inline |
|
private |
Definition at line 654 of file parse_utils.H.
Referenced by location().