| | | 1 | | using ArturRios.Output; |
| | | 2 | | |
| | | 3 | | namespace 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> |
| | 3 | 10 | | public class EndpointDisabledException(string[] messages) : CustomException(messages); |