< Summary

Information
Class: Elsa.Workflows.Exceptions.ActivityNotFoundException
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Exceptions/ActivityNotFoundException.cs
Line coverage
66%
Covered lines: 6
Uncovered lines: 3
Coverable lines: 9
Total lines: 30
Line coverage: 66.6%
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%
.ctor(...)100%11100%
get_MissingTypeName()100%11100%
get_MissingTypeVersion()100%11100%

File(s)

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

#LineLine coverage
 1namespace Elsa.Workflows.Exceptions;
 2
 3/// <summary>
 4/// Thrown when a NotFoundActivity is executed.
 5/// </summary>
 6public class ActivityNotFoundException : Exception
 7{
 8    /// <inheritdoc />
 09    public ActivityNotFoundException(string missingTypeName) : base($"Activity type '{missingTypeName}' could not be fou
 10    {
 011        MissingTypeName = missingTypeName;
 012    }
 13
 14    /// <inheritdoc />
 715    public ActivityNotFoundException(string missingTypeName, int missingTypeVersion) : base($"Activity type '{missingTyp
 16    {
 717        MissingTypeName = missingTypeName;
 718        MissingTypeVersion = missingTypeVersion;
 719    }
 20
 21    /// <summary>
 22    /// The type name of the missing activity type.
 23    /// </summary>
 524    public string MissingTypeName { get; }
 25
 26    /// <summary>
 27    /// The version of the missing activity type.
 28    /// </summary>
 129    public int MissingTypeVersion { get; }
 30}