// Copyright (c) Microsoft. All rights reserved. using System; namespace Microsoft.Agents.AI.Workflows; /// /// Event triggered when a workflow encounters an error. /// /// /// Optionally, the representing the error. /// public class WorkflowErrorEvent(Exception? e) : WorkflowEvent(e) { /// /// Gets the exception that caused the current operation to fail, if one occurred. /// public Exception? Exception => this.Data as Exception; }