class_docstr: base exception class for all parsing runtime exceptions
docstr: internal factory method to simplify creating one type of ParseException
  from another - avoids having __init__ signature conflicts among subclasses
docstr_tok: ["internal","factory","method","to","simplify","creating","one","type","of","ParseException","from","another","-","avoids","having","__init__","signature","conflicts","among","subclasses"]
code: def _from_exception(cls, pe):
      """
      internal factory method to simplify creating one type of ParseException
      from another - avoids having __init__ signature conflicts among subclasses
      """
      return cls(pe.pstr, pe.loc, pe.msg, pe.parser_element)
  
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 3 for calling the ParseBaseException obj's underlying member method code with example usage: obj._from_exception(cls, pe) and returns: cls