< Summary

Information
Class: TeleFlow.Telegram.TelegramErrorContext
Assembly: TeleFlow.Framework
File(s): /_/src/TeleFlow.Framework/TelegramErrorContext.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 42
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)

/_/src/TeleFlow.Framework/TelegramErrorContext.cs

#LineLine coverage
 1namespace TeleFlow.Telegram;
 2
 3public sealed class TelegramErrorContext
 4{
 5    internal TelegramErrorContext(
 6        Exception exception,
 7        TelegramUpdateContext updateContext,
 8        Type handlerType,
 9        string handlerMethodName,
 10        string? moduleName,
 11        string? sceneName,
 12        IReadOnlyDictionary<string, object?> routeValues)
 13    {
 2114        ArgumentNullException.ThrowIfNull(exception);
 2115        ArgumentNullException.ThrowIfNull(updateContext);
 2116        ArgumentNullException.ThrowIfNull(handlerType);
 2117        ArgumentException.ThrowIfNullOrWhiteSpace(handlerMethodName);
 2118        ArgumentNullException.ThrowIfNull(routeValues);
 19
 20        Exception = exception;
 21        UpdateContext = updateContext;
 22        HandlerType = handlerType;
 23        HandlerMethodName = handlerMethodName;
 24        ModuleName = moduleName;
 25        SceneName = sceneName;
 26        RouteValues = routeValues;
 2127    }
 28
 29    public Exception Exception { get; }
 30
 31    public TelegramUpdateContext UpdateContext { get; }
 32
 33    public Type HandlerType { get; }
 34
 35    public string HandlerMethodName { get; }
 36
 37    public string? ModuleName { get; }
 38
 39    public string? SceneName { get; }
 40
 41    public IReadOnlyDictionary<string, object?> RouteValues { get; }
 42}