"""Create fallback_executor
Generated by Phi-Octopus Eden
2025-11-06 06:02:26.119475
"""

```python
from typing import Callable, Any


class FallbackExecutor:
    """
    A class that provides a mechanism for executing functions with fallbacks.
    If the primary function raises an error, it attempts to execute a fallback function.

    :param func: The main function to be executed.
    :type func: Callable[..., Any]
    :param fallback_func: The fallback function to be used in case of errors from the main function.
    :type fallback_func: Callable[..., Any]
    """

    def __init__(self, func: Callable[..., Any], fallback_func: Callable[..., Any]):
        self.func = func
        self.fallback_func = fallback_func

    def execute_with_fallback(self, *args, **kwargs) -> Any:
        """
        Execute the main function. If an error occurs, attempt to use the fallback function.

        :param args: Arguments for the functions.
        :param kwargs: Keyword arguments for the functions.
        :return: The result of the executed function or its fallback if an error occurred.
        """
        try:
            return self.func(*args, **kwargs)
        except Exception as e:
            print(f"An error occurred while executing {self.func.__name__}: {e}")
            return self.fallback_func(*args, **kwargs)


def example_function(a: int) -> str:
    """Example function that may raise an error if the input is less than 0."""
    if a < 0:
        raise ValueError("Input must be non-negative")
    else:
        return f"Processing {a}"


def fallback_function() -> str:
    """Fallback function when the main function fails."""
    return "Using fallback execution"


# Example usage
fallback_executor = FallbackExecutor(example_function, fallback_function)
result = fallback_executor.execute_with_fallback(-5)  # This should trigger the fallback
print(result)

# Expected output: Using fallback execution

result = fallback_executor.execute_with_fallback(10)  # This should work without a fallback
print(result)

# Expected output: Processing 10
```