// Copyright (c) Microsoft. All rights reserved.
using System;
namespace Microsoft.Agents.AI.Workflows;
///
/// Event triggered when a workflow encounters an error.
///
/// The ID of the subworkflow that encountered the error.
/// Optionally, the representing the error.
public sealed class SubworkflowErrorEvent(string subworkflowId, Exception? e) : WorkflowErrorEvent(e)
{
///
/// Gets the ID of the subworkflow that encountered the error.
///
public string SubworkflowId { get; } = subworkflowId;
}