< Summary

Information
Class: Elsa.Api.Client.Resources.WorkflowInstances.Models.WorkflowFaultState
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowInstances/Models/WorkflowFaultState.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 22
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Exception()100%210%
.ctor()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowInstances/Models/WorkflowFaultState.cs

#LineLine coverage
 1using System.Text.Json.Serialization;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Api.Client.Resources.WorkflowInstances.Models;
 5
 6/// <summary>
 7/// Holds information about a workflow fault.
 8/// </summary>
 9/// <param name="Exception">The exception that occurred</param>
 10/// <param name="Message">A description about the fault. Usually the exception message, if there waa an exception.</para
 11/// <param name="FaultedActivityId">The ID of the activity that caused the workflow to fault.</param>
 12[PublicAPI]
 013public record WorkflowFaultState(ExceptionState? Exception, string Message, string? FaultedActivityId)
 14{
 15    /// <summary>
 16    /// Initializes a new instance of the <see cref="WorkflowFaultState"/> class.
 17    /// </summary>
 18    [JsonConstructor]
 019    public WorkflowFaultState() : this(default, default!, default)
 20    {
 021    }
 22}

Methods/Properties

get_Exception()
.ctor()