< Summary

Information
Class: Fluorite.Strainer.Exceptions.StrainerConversionException
Assembly: Fluorite.Strainer
File(s): /builds/fluorite/strainer/src/Strainer/Exceptions/StrainerConversionException.cs
Line coverage
42%
Covered lines: 6
Uncovered lines: 8
Coverable lines: 14
Total lines: 26
Line coverage: 42.8%
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%210%
.ctor(...)100%11100%
get_TargetedType()100%11100%
get_Value()100%11100%

File(s)

/builds/fluorite/strainer/src/Strainer/Exceptions/StrainerConversionException.cs

#LineLine coverage
 1namespace Fluorite.Strainer.Exceptions;
 2
 3public class StrainerConversionException : StrainerException
 4{
 05    public StrainerConversionException(object value, Type targetedType)
 6    {
 07        Value = value;
 08        TargetedType = Guard.Against.Null(targetedType);
 09    }
 10
 011    public StrainerConversionException(string message, object value, Type targetedType) : base(message)
 12    {
 013        Value = value;
 014        TargetedType = Guard.Against.Null(targetedType);
 015    }
 16
 117    public StrainerConversionException(string message, Exception innerException, object value, Type targetedType) : base
 18    {
 119        Value = value;
 120        TargetedType = Guard.Against.Null(targetedType);
 121    }
 22
 223    public Type TargetedType { get; set; }
 24
 125    public object Value { get; }
 26}