mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
26 lines
758 B
C#
26 lines
758 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using Microsoft.Agents.AI.Workflows;
|
|
|
|
namespace Microsoft.Agents.AI.DurableTask;
|
|
|
|
/// <summary>
|
|
/// Event raised when a durable workflow fails.
|
|
/// </summary>
|
|
public sealed class DurableWorkflowFailedEvent : WorkflowEvent
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="DurableWorkflowFailedEvent"/> class.
|
|
/// </summary>
|
|
/// <param name="errorMessage">The error message describing the failure.</param>
|
|
public DurableWorkflowFailedEvent(string errorMessage) : base(errorMessage)
|
|
{
|
|
this.ErrorMessage = errorMessage;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the error message describing the failure.
|
|
/// </summary>
|
|
public string ErrorMessage { get; }
|
|
}
|