"""Create fallback_executor
Generated by Phi-Octopus Eden
2025-11-06 12:55:03.142138
"""

```python
class FallbackExecutor:
    """
    A class for creating a fallback mechanism in case an execution fails.
    
    Attributes:
        main_executor (callable): The primary function to execute.
        fallback_function (callable): The secondary function to execute if the main fails.

    Methods:
        execute_with_fallback: Attempts to execute the main function, and if it fails, executes the fallback function.
    """
    
    def __init__(self, main_executor: callable, fallback_function: callable):
        self.main_executor = main_executor
        self.fallback_function = fallback_function

    def execute_with_fallback(self) -> bool:
        """
        Attempts to execute the main function. If it fails with an exception, executes the fallback function.
        
        Returns:
            bool: True if either the main or fallback function succeeds, False otherwise.
        """
        try:
            self.main_executor()
            return True
        except Exception as e:
            print(f"Main execution failed: {e}")
            try:
                self.fallback_function()
                return True
            except Exception as fe:
                print(f"Fallback function also failed: {fe}")
                return False

# Example Usage:
def main_task():
    """Sends a critical message to the server."""
    print("Sending critical message...")

def backup_task():
    """Sends a less critical but still important message."""
    print("Sending less critical message...")

fallback_executor = FallbackExecutor(main_task, backup_task)
success = fallback_executor.execute_with_fallback()
print(f"Execution successful: {success}")
```