"""Create fallback_executor
Generated by Phi-Octopus Eden
2025-11-07 06:06:43.705344
"""

```python
class FallbackExecutor:
    """
    A class for executing a function with fallback mechanisms in case of errors.
    
    Args:
        func (Callable): The main function to execute.
        fallback_func (Callable): The function to execute if an error occurs in the main function.
        
    Methods:
        run: Executes the provided function and handles exceptions by running the fallback function.
    """
    
    def __init__(self, func: Callable, fallback_func: Callable):
        self.func = func
        self.fallback_func = fallback_func
    
    def run(self, *args, **kwargs) -> Any:
        """
        Execute the main function with provided arguments. If an error occurs, execute the fallback function.
        
        Args:
            *args: Positional arguments to pass to the functions.
            **kwargs: Keyword arguments to pass to the functions.
            
        Returns:
            The result of either the main function or the fallback function, depending on whether an error occurred.
        """
        try:
            return self.func(*args, **kwargs)
        except Exception as e:
            print(f"Error occurred: {e}")
            return self.fallback_func(*args, **kwargs)


# Example usage
def divide(a: float, b: float) -> float:
    """Divide two numbers."""
    return a / b

def safe_divide(a: float, b: float) -> Union[float, str]:
    """Handle division by zero and non-numeric inputs."""
    if b == 0:
        return "Error: Division by zero"
    elif not (isinstance(a, (int, float)) and isinstance(b, (int, float))):
        return "Error: Non-numeric input"
    return a / b

fallback_executor = FallbackExecutor(divide, safe_divide)

result = fallback_executor.run(10, 2)  # Normal case
print(result)  # Output: 5.0

result = fallback_executor.run(10, 0)  # Division by zero
print(result)  # Output: Error: Division by zero

result = fallback_executor.run('a', 'b')  # Non-numeric input
print(result)  # Output: Error: Non-numeric input
```