< Summary - pva.SuperV

Information
Class: pva.SuperV.Engine.Exceptions.StringConversionException
Assembly: pva.SuperV.Engine
File(s): /home/runner/work/pva.SuperV/pva.SuperV/pva.SuperV.Engine/Exceptions/StringConversionException.cs
Tag: dotnet-ubuntu_18869653307
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 33
Line coverage: 100%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
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(...)50%22100%

File(s)

/home/runner/work/pva.SuperV/pva.SuperV/pva.SuperV.Engine/Exceptions/StringConversionException.cs

#LineLine coverage
 1using System.Diagnostics.CodeAnalysis;
 2
 3namespace pva.SuperV.Engine.Exceptions
 4{
 5    /// <summary>Exception thrown when type requested doesn't match actual field type.</summary>
 6    public class StringConversionException : SuperVException
 7    {
 8        public StringConversionException(string fieldName, string? stringValue, Type fieldType)
 119            : base($"Can't convert {stringValue} for {fieldName} with type {fieldType}")
 1110        {
 1111        }
 12
 13        public StringConversionException(string fieldName, string? stringValue, List<string>? possibleValues)
 1814            : base($"Can't convert {stringValue} for {fieldName}. Possible values are {possibleValues?.Aggregate((a, b) 
 615        {
 616        }
 17
 18        [ExcludeFromCodeCoverage]
 19        public StringConversionException()
 20        {
 21        }
 22
 23        [ExcludeFromCodeCoverage]
 24        public StringConversionException(string? message) : base(message)
 25        {
 26        }
 27
 28        [ExcludeFromCodeCoverage]
 29        public StringConversionException(string? message, Exception? innerException) : base(message, innerException)
 30        {
 31        }
 32    }
 33}