< Summary

Information
Class: Services.ApiServices.MlAutoApi.MlAutoApiException
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/MlAutoApi/MlAutoApiException.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 17
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
get_StatusCode()100%11100%
get_RequestPath()100%11100%
get_IsRateLimited()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/MlAutoApi/MlAutoApiException.cs

#LineLine coverage
 1namespace Services.ApiServices.MlAutoApi;
 2
 3public sealed class MlAutoApiException : Exception
 4{
 15    public int? StatusCode { get; }
 16    public string? RequestPath { get; }
 7
 8    /// <summary>Поставщик (или локальный ограничитель) отказал из-за лимита запросов в минуту: ошибка временная.</summa
 109    public bool IsRateLimited { get; init; }
 10
 11    public MlAutoApiException(string message, int? statusCode = null, string? requestPath = null, Exception? innerExcept
 1312        : base(message, innerException)
 13    {
 1314        StatusCode = statusCode;
 1315        RequestPath = requestPath;
 1316    }
 17}