< Summary

Information
Class: Elsa.Api.Client.Resources.WorkflowInstances.Models.ExceptionState
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowInstances/Models/ExceptionState.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 18
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_Type()100%210%
.ctor()100%210%

File(s)

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

#LineLine coverage
 1using System.Text.Json.Serialization;
 2
 3namespace Elsa.Api.Client.Resources.WorkflowInstances.Models;
 4
 5/// <summary>
 6/// A simplified, serializable model representing an exception.
 7/// </summary>
 08public record ExceptionState(string Type, string Message, string? StackTrace, ExceptionState? InnerException)
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="ExceptionState"/> class.
 12    /// </summary>
 13    [JsonConstructor]
 014    public ExceptionState() : this(null!, null!, null, null)
 15    {
 16
 017    }
 18}

Methods/Properties

get_Type()
.ctor()