summaryrefslogtreecommitdiff
path: root/pyparsing/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyparsing/exceptions.py')
-rw-r--r--pyparsing/exceptions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyparsing/exceptions.py b/pyparsing/exceptions.py
index aa08f63..73f6c02 100644
--- a/pyparsing/exceptions.py
+++ b/pyparsing/exceptions.py
@@ -25,6 +25,12 @@ _exception_word_extractor = re.compile("([" + _extract_alphanums + "]{1,16})|.")
class ParseBaseException(Exception):
"""base exception class for all parsing runtime exceptions"""
+ loc: int
+ msg: str
+ pstr: str
+ parser_element: typing.Any # "ParserElement"
+ args: typing.Tuple[str, int, typing.Optional[str]]
+
__slots__ = (
"loc",
"msg",