|
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 653 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 663 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 |
Get the source location of the error.
Definition at line 678 of file parse_utils.H.
References loc_.
|
private |
Definition at line 655 of file parse_utils.H.
Referenced by location().