< Summary

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

File(s)

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

#LineLine coverage
 1namespace Pozitron.QuerySpecification;
 2
 3/// <summary>
 4/// Exception thrown when an entity is not found.
 5/// </summary>
 6public class EntityNotFoundException : Exception
 7{
 8    /// <summary>
 9    /// Initializes a new instance of the <see cref="EntityNotFoundException"/> class.
 10    /// </summary>
 11    public EntityNotFoundException()
 112        : base($"The queried entity was not found!")
 13    {
 114    }
 15
 16    /// <summary>
 17    /// Initializes a new instance of the <see cref="EntityNotFoundException"/> class with a specified entity name.
 18    /// </summary>
 19    /// <param name="entityName">The name of the entity that was not found.</param>
 20    public EntityNotFoundException(string entityName)
 421        : base($"The queried entity: {entityName} was not found!")
 22    {
 423    }
 24
 25    /// <summary>
 26    /// Initializes a new instance of the <see cref="EntityNotFoundException"/> class with a specified entity name and i
 27    /// </summary>
 28    /// <param name="entityName">The name of the entity that was not found.</param>
 29    /// <param name="innerException">The exception that is the cause of this exception.</param>
 30    public EntityNotFoundException(string entityName, Exception innerException)
 131        : base($"The queried entity: {entityName} was not found!", innerException)
 32    {
 133    }
 34}