< Summary

Information
Class: KT.Modules.Report.Core.Domain.ReportsDoesntExistsException
Assembly: KT.Modules.Report
File(s): G:\NetProjects\KeepTrack\src\Modules\KT.Modules.Report\Core\Domain\Exceptions.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 37
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%

File(s)

G:\NetProjects\KeepTrack\src\Modules\KT.Modules.Report\Core\Domain\Exceptions.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using System.Threading.Tasks;
 6
 7namespace KT.Modules.Report.Core.Domain
 8{
 9    public class ReportDoesntExistsException : Exception
 10    {
 11        public string ReportId { get; }
 12
 13        public ReportDoesntExistsException(string reportId)
 14            : base($"The report with id '{reportId}' doesn't exists")
 15        {
 16            ReportId = reportId;
 17        }
 18    }
 19
 20    public class ReportsDoesntExistsException : Exception
 21    {
 22        public ReportsDoesntExistsException()
 223            : base("Reports not found")
 224        {
 225        }
 26    }
 27
 28    public class ReportWithUserIdDoesntExistsException : Exception
 29    {
 30        public string UserId { get; }
 31        public ReportWithUserIdDoesntExistsException(string userId)
 32            : base($"The report created by user id '{userId}' doesn't exists")
 33        {
 34            UserId = userId;
 35        }
 36    }
 37}

Methods/Properties

.ctor()