"""Create fallback_executor
Generated by Phi-Octopus Eden
2025-11-07 23:28:46.881266
"""

```python
class FallbackExecutor:
    """
    A class for executing tasks with fallback mechanisms in case of errors.
    
    This class is designed to handle situations where a primary task execution may fail,
    and it provides a way to execute a fallback task when the primary fails.
    
    :param primary_task: The function representing the main task to be executed.
    :type primary_task: Callable
    :param fallback_task: The function representing the fallback task in case of failure.
    :type fallback_task: Callable
    """

    def __init__(self, primary_task: callable, fallback_task: callable):
        self.primary_task = primary_task
        self.fallback_task = fallback_task

    def execute(self) -> str:
        """
        Execute the primary task. If it fails, switch to the fallback task.
        
        :return: A message indicating success or failure of the operation.
        :rtype: str
        """
        try:
            result = self.primary_task()
            return f"Primary Task Success: {result}"
        except Exception as e:
            print(f"An error occurred during primary task execution: {e}")
            fallback_result = self.fallback_task()
            return f"Fallback Task Success: {fallback_result}"


# Example usage
def main_task():
    # Simulate a task that may fail
    import random
    
    if random.choice([True, False]):
        raise ValueError("Oops! Something went wrong.")
    else:
        return "Task executed successfully!"

def fallback_task():
    # A simple fallback function
    return "Executing fallback as the primary task failed."

# Creating an instance of FallbackExecutor with defined tasks
executor = FallbackExecutor(primary_task=main_task, fallback_task=fallback_task)

# Executing the setup and printing result
result = executor.execute()
print(result)
```