< 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: 8
Coverable lines: 8
Total lines: 27
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
.ctor(...)100%210%
get_Type()100%210%
get_Message()100%210%
get_StackTrace()100%210%
get_InnerException()100%210%
get_Metadata()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(
 09    string Type,
 010    string Message,
 011    string? StackTrace,
 012    ExceptionState? InnerException)
 13{
 14    /// <summary>
 15    /// Gets privacy-safe structured exception metadata.
 16    /// </summary>
 017    public IReadOnlyDictionary<string, string>? Metadata { get; init; }
 18
 19    /// <summary>
 20    /// Initializes a new instance of the <see cref="ExceptionState"/> class.
 21    /// </summary>
 22    [JsonConstructor]
 023    public ExceptionState() : this(null!, null!, null, null)
 24    {
 25
 026    }
 27}