API reference
python:arx:arx.exceptions.ParserException
class ParserException
ParserException(message: str, location: SourceLocation | None = None, code: str = 'ARX-PARSE-001')
Source: packages/arx/src/arx/exceptions.py:48
Handle exceptions for the Parser phase.
Attributes
-
code — Type: str
-
location — Type: SourceLocation | None
-
message — Type: str
Methods
-
__init__ — Initialize ParserException.
-
attach_location — Attach a source-backed location when one is not already set.
-
format_message — Format the parser failure with an optional source location.
Attributes
- message —