// Copyright (c) Microsoft. All rights reserved.
using System;
namespace Microsoft.Agents.AI.Workflows;
///
/// Event triggered when an executor handler fails.
///
/// The unique identifier of the executor that has failed.
/// The exception representing the error.
public sealed class ExecutorFailedEvent(string executorId, Exception? err)
: ExecutorEvent(executorId, data: err)
{
///
/// The exception that caused the executor to fail. This may be null if no exception was thrown.
///
public new Exception? Data => err;
}