class_docstr: A context manager that will catch certain exceptions and provide an
  indication they occurred.
  
  >>> with ExceptionTrap() as trap:
  ...     raise Exception()
  >>> bool(trap)
  True
  
  >>> with ExceptionTrap() as trap:
  ...     pass
  >>> bool(trap)
  False
  
  >>> with ExceptionTrap(ValueError) as trap:
  ...     raise ValueError("1 + 1 is not 3")
  >>> bool(trap)
  True
  >>> trap.value
  ValueError('1 + 1 is not 3')
  >>> trap.tb
  <traceback object at ...>
  
  >>> with ExceptionTrap(ValueError) as trap:
  ...     raise Exception()
  Traceback (most recent call last):
  ...
  Exception
  
  >>> bool(trap)
  False
class_docstr_tok: ["A","context","manager","that","will","catch","certain","exceptions","and","provide","an","indication","they","occurred",".",">",">",">","with","ExceptionTrap","(",")","as","trap",":","...","raise","Exception","(",")",">",">",">","bool","(","trap",")","True",">",">",">","with","ExceptionTrap","(",")","as","trap",":","...","pass",">",">",">","bool","(","trap",")","False",">",">",">","with","ExceptionTrap","(","ValueError",")","as","trap",":","...","raise","ValueError","(","``","1","+","1","is","not","3","''",")",">",">",">","bool","(","trap",")","True",">",">",">","trap.value","ValueError","(","'","1","+","1","is","not","3","'",")",">",">",">","trap.tb","<","traceback","object","at","...",">",">",">",">","with","ExceptionTrap","(","ValueError",")","as","trap",":","...","raise","Exception","(",")","Traceback","(","most","recent","call","last",")",":","...","Exception",">",">",">","bool","(","trap",")","False"]
code: def __exit__(self, *exc_info):
      type = exc_info[0]
      matches = type and issubclass(type, self.exceptions)
      if matches:
          self.exc_info = exc_info
      return matches
  
imports: import os
  import subprocess
  import contextlib
  import functools
  import tempfile
  import shutil
  import operator
  import warnings
label_desc: Use image node_id 6 for calling the ExceptionTrap obj's underlying member method code with example usage: obj.__exit__() and returns: matches