class_docstr: Base class for all exceptions raised by this module.
      
docstr: This returns an abbreviated stack trace with lines that only concern
  the caller. In other words, the stack trace inside the Pexpect module
  is not included. 
docstr_tok: ["This","returns","an","abbreviated","stack","trace","with","lines","that","only","concern","the","caller",".","In","other","words",",","the","stack","trace","inside","the","Pexpect","module","is","not","included","."]
code: def get_trace(self):
      """This returns an abbreviated stack trace with lines that only concern
      the caller. In other words, the stack trace inside the Pexpect module
      is not included."""
  
      tblist = traceback.extract_tb(sys.exc_info()[2])
      tblist = [
          item
          for item in tblist
          if ("pexpect/__init__" not in item[0])
          and ("pexpect/expect" not in item[0])
      ]
      tblist = traceback.format_list(tblist)
      return "".join(tblist)
  
file_path: catboost/contrib/python/pexpect/py3/pexpect/exceptions.py
imports: import traceback
  import sys
label_desc: Use image node_id 3 for calling the ExceptionPexpect obj's underlying member method code with example usage: obj.get_trace() and returns: str