< Summary

Information
Class: Elsa.Expressions.Exceptions.TypeConversionException
Assembly: Elsa.Expressions
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions/Exceptions/TypeConversionException.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 10
Coverable lines: 10
Total lines: 19
Line coverage: 0%
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
get_Value()100%210%
get_TargetType()100%210%
.ctor(...)100%210%
.ctor(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions/Exceptions/TypeConversionException.cs

#LineLine coverage
 1namespace Elsa.Expressions.Exceptions;
 2
 3public class TypeConversionException : Exception
 4{
 05    public object Value { get; }
 06    public Type TargetType { get; }
 7
 08    public TypeConversionException(string message, object value, Type targetType) : base(message)
 9    {
 010        Value = value;
 011        TargetType = targetType;
 012    }
 13
 014    public TypeConversionException(string message, object value, Type targetType, Exception innerException) : base(messa
 15    {
 016        Value = value;
 017        TargetType = targetType;
 018    }
 19}