"""Create fallback_executor
Generated by Phi-Octopus Eden
2025-11-08 12:40:34.347249
"""

```python
from typing import Callable, Any


class FallbackExecutor:
    """
    A class for executing a function with fallback support in case of an exception.
    
    Args:
        func: The main function to be executed.
        fallback_func: The function to be used as a fallback in case `func` raises an exception.
    """

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

    def execute(self, *args, **kwargs) -> Any:
        """
        Execute the main function. If an exception occurs, call the fallback function.
        
        Args:
            *args: Variable length argument list for the functions.
            **kwargs: Arbitrary keyword arguments for the functions.

        Returns:
            The result of the main function if successful, otherwise the result of the fallback function.
        """
        try:
            return self.func(*args, **kwargs)
        except Exception as e:
            print(f"Error occurred while executing {self.func.__name__}: {str(e)}")
            return self.fallback_func(*args, **kwargs)


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


def safe_divide(a: int, b: int) -> float:
    """Safe division that returns 0 in case of zero division error."""
    if b == 0:
        return 0
    else:
        return a / b


# Creating an instance of FallbackExecutor
executor = FallbackExecutor(divide, safe_divide)

# Example call to the executor
result = executor.execute(10, 2)  # Normal execution with divide
print(result)  # Output: 5.0

result = executor.execute(10, 0)  # Execution with zero division error and fallback
print(result)  # Output: 0.0
```