< Summary

Information
Class: Pozitron.QuerySpecification.InvalidLikePatternException
Assembly: Pozitron.QuerySpecification
File(s): /home/runner/work/QuerySpecification/QuerySpecification/src/QuerySpecification/Exceptions/InvalidLikePatternException.cs
Tag: 52_11740816328
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 28
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%

File(s)

/home/runner/work/QuerySpecification/QuerySpecification/src/QuerySpecification/Exceptions/InvalidLikePatternException.cs

#LineLine coverage
 1namespace Pozitron.QuerySpecification;
 2
 3/// <summary>
 4/// Exception thrown when an invalid like pattern is encountered.
 5/// </summary>
 6public class InvalidLikePatternException : Exception
 7{
 8    private const string _message = "Invalid like pattern: ";
 9
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="InvalidLikePatternException"/> class with a specified pattern.
 12    /// </summary>
 13    /// <param name="pattern">The invalid like pattern.</param>
 14    public InvalidLikePatternException(string pattern)
 115        : base($"{_message}{pattern}")
 16    {
 117    }
 18
 19    /// <summary>
 20    /// Initializes a new instance of the <see cref="InvalidLikePatternException"/> class with a specified pattern and i
 21    /// </summary>
 22    /// <param name="pattern">The invalid like pattern.</param>
 23    /// <param name="innerException">The exception that is the cause of this exception.</param>
 24    public InvalidLikePatternException(string pattern, Exception innerException)
 325        : base($"{_message}{pattern}", innerException)
 26    {
 327    }
 28}