original_docstring: 
      Wrap a function to transform native Python exceptions to CEL CELEvalError values.
      Any exception of the given class is replaced with the new CELEvalError object.
  
      :param new_text: Text of the exception, e.g., "divide by zero", "no such overload")
          this is the return value if the :exc:`CELEvalError` becomes the result.
      :param exc_class: A Python exception class to match, e.g. ZeroDivisionError,
          or a sequence of exception classes (e.g. (ZeroDivisionError, ValueError))
      :return: A decorator that can be applied to a function
          to map Python exceptions to :exc:`CELEvalError` instances.
  
      This is used in the ``all()`` and ``exists()`` macros to silently ignore TypeError exceptions.
      
docstring: Wrap a function to transform native Python exceptions to CEL CELEvalError values.
  Any exception of the given class is replaced with the new CELEvalError object.
docstring_tokens: Wrap a function to transform native Python exceptions to CEL CELEvalError values . Any exception of the given class is replaced with the new CELEvalError object .
code: def eval_error(new_text: str, exc_class: Exception_Filter) -> Callable[[TargetFunc], TargetFunc]:
      """
      Wrap a function to transform native Python exceptions to CEL CELEvalError values.
      Any exception of the given class is replaced with the new CELEvalError object.
  
      :param new_text: Text of the exception, e.g., "divide by zero", "no such overload")
          this is the return value if the :exc:`CELEvalError` becomes the result.
      :param exc_class: A Python exception class to match, e.g. ZeroDivisionError,
          or a sequence of exception classes (e.g. (ZeroDivisionError, ValueError))
      :return: A decorator that can be applied to a function
          to map Python exceptions to :exc:`CELEvalError` instances.
  
      This is used in the ``all()`` and ``exists()`` macros to silently ignore TypeError exceptions.
      """
      def concrete_decorator(function: TargetFunc) -> TargetFunc:
          @wraps(function)
          def new_function(*args: celpy.celtypes.Value, **kwargs: celpy.celtypes.Value) -> Result:
              try:
                  return function(*args, **kwargs)
              except exc_class as ex:  # type: ignore[misc]
                  logger.debug(f"{function.__name__}(*{args}, **{kwargs}) --> {ex}")
                  _, _, tb = sys.exc_info()
                  value = CELEvalError(new_text, ex.__class__, ex.args).with_traceback(tb)
                  value.__cause__ = ex
                  return value
              except Exception:
                  logger.error(f"{function.__name__}(*{args}, **{kwargs})")
                  raise
          return cast(TargetFunc, new_function)
      return concrete_decorator
code_tokens: def eval_error ( new_text : str , exc_class : Exception_Filter ) -> Callable [ [ TargetFunc ] , TargetFunc ] : def concrete_decorator ( function : TargetFunc ) -> TargetFunc : @ wraps ( function ) def new_function ( * args : celpy . celtypes . Value , ** kwargs : celpy . celtypes . Value ) -> Result : try : return function ( * args , ** kwargs ) except exc_class as ex : logger . debug ( f"{function.__name__}(*{args}, **{kwargs}) --> {ex}" ) _ , _ , tb = sys . exc_info ( ) value = CELEvalError ( new_text , ex . __class__ , ex . args ) . with_traceback ( tb ) value . __cause__ = ex return value except Exception : logger . error ( f"{function.__name__}(*{args}, **{kwargs})" ) raise return cast ( TargetFunc , new_function ) return concrete_decorator
short_docstring: Wrap a function to transform native Python exceptions to CEL CELEvalError values.
short_docstring_tokens: Wrap a function to transform native Python exceptions to CEL CELEvalError values .
comment: """
      Wrap a function to transform native Python exceptions to CEL CELEvalError values.
      Any exception of the given class is replaced with the new CELEvalError object.
  
      :param new_text: Text of the exception, e.g., "divide by zero", "no such overload")
          this is the return value if the :exc:`CELEvalError` becomes the result.
      :param exc_class: A Python exception class to match, e.g. ZeroDivisionError,
          or a sequence of exception classes (e.g. (ZeroDivisionError, ValueError))
      :return: A decorator that can be applied to a function
          to map Python exceptions to :exc:`CELEvalError` instances.
  
      This is used in the ``all()`` and ``exists()`` macros to silently ignore TypeError exceptions.
      """$SEP$# type: ignore[misc]