"""Create fallback_executor
Generated by Phi-Octopus Eden
2025-11-06 15:47:29.155232
"""

```python
from typing import Callable, Optional


class FallbackExecutor:
    """
    A class for executing a function with fallback mechanisms in case of errors.
    
    Attributes:
        main_function (Callable): The primary function to execute.
        fallback_function (Optional[Callable]): The function to execute if the main function fails.
        
    Methods:
        run: Executes the main function and handles exceptions by calling the fallback function if provided.
    """
    
    def __init__(self, main_function: Callable, fallback_function: Optional[Callable] = None):
        self.main_function = main_function
        self.fallback_function = fallback_function
    
    def run(self) -> Optional[str]:
        try:
            return self.main_function()
        except Exception as e:
            if self.fallback_function is not None:
                print(f"Error occurred: {e}. Executing fallback function.")
                return self.fallback_function()
            else:
                print(f"No fallback function provided. Error: {e}")
                return None


# Example usage
def divide_and_greet():
    """
    Attempts to perform division and returns a greeting message.
    Raises an exception if the denominator is zero.
    """
    numerator = 10
    denominator = 0
    try:
        result = numerator / denominator
    except ZeroDivisionError as e:
        raise ValueError("Denominator cannot be zero!") from e
    return f"Hello, the result of division is {result}"


def safe_divide_and_greet():
    """
    A safer version of divide_and_greet that uses a fallback.
    """
    return "Fallback: Hello! Division by zero handling failed, but we're still being friendly!"


fallback_executor = FallbackExecutor(main_function=divide_and_greet,
                                     fallback_function=safe_divide_and_greet)

# Running the example
output = fallback_executor.run()
print(output)
```