< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.KrException.AcceptHeaderException
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/KrException/AcceptHeaderException.cs
Tag: Kestrun/Kestrun@8aa46e1988031758b311143cd39bf5749fbcd39e
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 15
Line coverage: 0%
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

Coverage history

Coverage history 0 25 50 75 100 02/18/2026 - 08:33:07 Line coverage: 0% (0/2) Total lines: 15 Tag: Kestrun/Kestrun@bf8a937cfb7e8936c225b9df4608f8ddd85558b1

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
get_StatusCode()100%210%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/KrException/AcceptHeaderException.cs

#LineLine coverage
 1namespace Kestrun.KrException;
 2
 3/// <summary>
 4/// Exception thrown when there is an error parsing the Accept header from the client.
 5/// The StatusCode property indicates the HTTP status code that should be returned to the client.
 6/// </summary>
 7/// <param name="message">The error message describing the issue.</param>
 8/// <param name="statusCode">The HTTP status code to return.</param>
 09public class AcceptHeaderException(string message, int statusCode) : InvalidOperationException(message)
 10{
 11    /// <summary>
 12    /// Gets the HTTP status code to return.
 13    /// </summary>
 014    public int StatusCode { get; } = statusCode;
 15}