class_docstr: Returns context manager that will swallow and log exceptions.
  
  By default swallows descendents of Exception, but you can provide other classes through
  the vararg ``exceptions``.
  
  Suppression behavior can be disabled with reraise=True.
  
  :meta private:
class_docstr_tok: ["Returns","context","manager","that","will","swallow","and","log","exceptions",".","By","default","swallows","descendents","of","Exception",",","but","you","can","provide","other","classes","through","the","vararg","``","exceptions","``",".","Suppression","behavior","can","be","disabled","with","reraise=True",".",":","meta","private",":"]
code: def __init__(self, *exceptions, reraise=False):
      self._exceptions = exceptions or (Exception,)
      self.reraise = reraise
      self.exception = None
  
imports: from __future__ import annotations
  import json
  import logging
  import re
  import shlex
  import string
  import warnings
  from collections.abc import Container
  from contextlib import AbstractContextManager
  from functools import cached_property
  from typing import TYPE_CHECKING, Any, Callable, Iterable, Sequence
  from kubernetes.client import CoreV1Api, V1Pod, models
  from kubernetes.stream import stream
  from urllib3.exceptions import HTTPError
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning, AirflowSkipException
  from airflow.models import BaseOperator
  from airflow.providers.cncf.kubernetes import pod_generator
  from airflow.providers.cncf.kubernetes.backcompat.backwards_compat_converters import convert_affinity, convert_configmap, convert_env_vars, convert_image_pull_secrets, convert_pod_runtime_info_env, convert_port, convert_toleration, convert_volume, convert_volume_mount
  from airflow.providers.cncf.kubernetes.hooks.kubernetes import KubernetesHook
  from airflow.providers.cncf.kubernetes.kubernetes_helper_functions import POD_NAME_MAX_LENGTH, add_pod_suffix, create_pod_id
  from airflow.providers.cncf.kubernetes.pod_generator import PodGenerator
  from airflow.providers.cncf.kubernetes.triggers.pod import KubernetesPodTrigger
  from airflow.providers.cncf.kubernetes.utils import xcom_sidecar
  from airflow.providers.cncf.kubernetes.utils.pod_manager import EMPTY_XCOM_RESULT, OnFinishAction, PodLaunchFailedException, PodManager, PodOperatorHookProtocol, PodPhase, container_is_succeeded, get_container_termination_message
  from airflow.settings import pod_mutation_hook
  from airflow.utils import yaml
  from airflow.utils.helpers import prune_dict, validate_key
  from airflow.utils.timezone import utcnow
  from airflow.version import version
label_desc: Use image node_id 1 to create a new _optionally_suppress object from inherited base classes: AbstractContextManager with example: obj = _optionally_suppress()