< Summary

Information
Class: ArturRios.Util.WebApi.EndpointToggle.EndpointDisabledException
Assembly: ArturRios.Util.WebApi
File(s): D:\Repositories\dotnet-webapi-util\src\EndpointToggle\EndpointDisabledException.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 10
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 1
Fully covered methods: 1
Total methods: 1
Method coverage: 100%
Full method coverage: 100%

Metrics

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

File(s)

D:\Repositories\dotnet-webapi-util\src\EndpointToggle\EndpointDisabledException.cs

#LineLine coverage
 1using ArturRios.Output;
 2
 3namespace ArturRios.Util.WebApi.EndpointToggle;
 4
 5/// <summary>Exception thrown by <see cref="EndpointToggleAttribute"/> when a disabled endpoint is reached and its
 6/// disabled behavior is configured as <c>OutputType.Exception</c>. Carries one or more messages describing why the
 7/// endpoint is unavailable, letting it be handled by the exception pipeline (for example
 8/// <see cref="Middleware.ExceptionMiddleware"/>) like any other <see cref="CustomException"/>.</summary>
 9/// <param name="messages">The messages describing why the endpoint is disabled.</param>
 310public class EndpointDisabledException(string[] messages) : CustomException(messages);

Methods/Properties

.ctor(System.String[])