24 lines
604 B
C#
24 lines
604 B
C#
|
|
using System;
|
||
|
|
|
||
|
|
namespace RudderSdk.Core;
|
||
|
|
|
||
|
|
/// <summary>Payload of <see cref="ScenarioService.OnScenarioFailed"/>.</summary>
|
||
|
|
public sealed class ScenarioFailedEvent
|
||
|
|
{
|
||
|
|
internal ScenarioFailedEvent(PlanRun run, string nodeId, Exception exception)
|
||
|
|
{
|
||
|
|
Run = run;
|
||
|
|
NodeId = nodeId;
|
||
|
|
Exception = exception;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>The failed run.</summary>
|
||
|
|
public PlanRun Run { get; }
|
||
|
|
|
||
|
|
/// <summary>Node the failure happened at.</summary>
|
||
|
|
public string NodeId { get; }
|
||
|
|
|
||
|
|
/// <summary>The error that failed the run.</summary>
|
||
|
|
public Exception Exception { get; }
|
||
|
|
}
|