class_docstr: Context manager to temporarily catch VTK errors.
  
  Parameters
  ----------
  raise_errors : bool, default: False
      Raise a ``RuntimeError`` when a VTK error is encountered.
  
  send_to_logging : bool, default: True
      Determine whether VTK errors raised within the context should
      also be sent to logging.
  
  Examples
  --------
  Catch VTK errors using the context manager.
  
  >>> import pyvista as pv
  >>> with pv.VtkErrorCatcher() as error_catcher:
  ...     sphere = pv.Sphere()
  ...
docstr: Observe VTK string output window for errors.
docstr_tok: ["Observe","VTK","string","output","window","for","errors","."]
code: def __enter__(self):
      """Observe VTK string output window for errors."""
      error_output = _vtk.vtkStringOutputWindow()
      error_win = _vtk.vtkOutputWindow()
      self._error_output_orig = error_win.GetInstance()
      error_win.SetInstance(error_output)
      obs = Observer(log=self.send_to_logging, store_history=True)
      obs.observe(error_output)
      self._observer = obs
  
imports: import collections
  import logging
  import os
  import re
  import signal
  import sys
  import threading
  import traceback
  from pyvista.core import _vtk_core
label_desc: Use image node_id 2 for calling the VtkErrorCatcher obj's underlying member method code with example usage: obj.__enter__() without return types