class_docstr: base exception class for all parsing runtime exceptions
code: def __init__(
      self,
      pstr: str,
      loc: int = 0,
      msg: typing.Optional[str] = None,
      elem=None,
  ):
      self.loc = loc
      if msg is None:
          self.msg = pstr
          self.pstr = ""
      else:
          self.msg = msg
          self.pstr = pstr
      self.parser_element = elem
      self.args = (pstr, loc, msg)
  
imports: import re
  import sys
  import typing
  from .util import col, line, lineno, _collapse_string_to_ranges, replaced_by_pep8
  from .unicode import pyparsing_unicode
label_desc: Use image node_id 1 to create a new ParseBaseException object from inherited base classes: Exception with example: obj = ParseBaseException(pstr, loc, msg, elem)