"""Create fallback_executor
Generated by Phi-Octopus Eden
2025-11-06 10:18:03.704517
"""

```python
class FallbackExecutor:
    """
    A class that provides a fallback mechanism for executing functions.
    If an exception occurs during function execution, it attempts to execute
    a specified fallback function.

    :param func: The main function to be executed.
    :type func: callable
    :param fallback_func: The function to be executed in case of failure.
    :type fallback_func: callable
    """

    def __init__(self, func: callable, fallback_func: callable):
        self.func = func
        self.fallback_func = fallback_func

    def execute_with_fallback(self) -> None:
        """
        Executes the main function. If an exception occurs,
        executes the fallback function.
        """
        try:
            self.func()
        except Exception as e:
            print(f"An error occurred: {e}")
            self.fallback_func()

# Example usage
def main_function():
    # Simulate a failure scenario
    raise ValueError("Main function failed")

def fallback_function():
    print("Executing fallback function...")

executor = FallbackExecutor(main_function, fallback_function)
executor.execute_with_fallback()
```