< Summary

Information
Class: Spdx3.Exceptions.Spdx3ValidationException
Assembly: Spdx3
File(s): /home/runner/work/Spdx3/Spdx3/Spdx3/Exceptions/Spdx3ValidationException.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 20
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%
.ctor(...)100%11100%
FormatMessage(...)100%11100%

File(s)

/home/runner/work/Spdx3/Spdx3/Spdx3/Exceptions/Spdx3ValidationException.cs

#LineLine coverage
 1using Spdx3.Model;
 2
 3namespace Spdx3.Exceptions;
 4
 5public class Spdx3ValidationException : Spdx3Exception
 6{
 627    public Spdx3ValidationException(BaseModelClass obj, string propertyName, string why) : base(FormatMessage(obj,
 628        propertyName, why))
 9    {
 6210    }
 11
 312    public Spdx3ValidationException(string message) : base(message)
 13    {
 314    }
 15
 16    private static string FormatMessage(BaseModelClass obj, string propertyName, string why)
 17    {
 6218        return $"Object {obj.GetType().Name}, property {propertyName}: {why}";
 19    }
 20}