< Summary

Information
Class: Elsa.Workflows.Exceptions.FaultException
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Exceptions/FaultException.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 31
Line coverage: 100%
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%11100%
get_Code()100%11100%
get_Category()100%11100%
get_Type()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Exceptions/FaultException.cs

#LineLine coverage
 1namespace Elsa.Workflows.Exceptions;
 2
 3/// <summary>
 4/// Represents an exception that occurred during workflow execution.
 5/// </summary>
 6public class FaultException : Exception
 7{
 8    /// <inheritdoc />
 189    public FaultException(string code, string category, string type, string? message) : base(message)
 10    {
 1811        Code = code;
 1812        Category = category;
 1813        Type = type;
 1814    }
 15
 16    /// <summary>
 17    /// Code that identifies the fault type.
 18    /// </summary>
 819    public string Code { get; }
 20
 21    /// <summary>
 22    /// Category to categorize the fault. E.g. "HTTP", "Alteration", "Azure", etc.
 23    /// This is used to distinguish error codes between modules.
 24    /// </summary>
 525    public string Category { get; }
 26
 27    /// <summary>
 28    /// Kind of fault. E.g. "System", "Business", "Integration", etc.
 29    /// </summary>
 530    public string Type { get; }
 31}