< Summary

Information
Class: c:\Source 2025\CurrencyConverter\CurrencyConverter\src\Domain\Common\Error.cs
Assembly: Default
File(s): c:\Source 2025\CurrencyConverter\CurrencyConverter\src\Domain\Common\Error.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 8
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

File(s)

c:\Source 2025\CurrencyConverter\CurrencyConverter\src\Domain\Common\Error.cs

#LineLine coverage
 1namespace Domain.Common;
 2
 403public record Error(ErrorCode Code, string Message)
 4{
 15    public static readonly Error None = new(ErrorCode.NoError, string.Empty);
 16    public static readonly Error NotFound = new(ErrorCode.BadInput, "Could not find requested item");
 17    public static readonly Error SystemError = new(ErrorCode.ServerError, "Oops, something went wrong");
 8}