@* This file is part of NKK. NKK is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. NKK is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with NKK. If not, see . *@ @page "/Error" @layout MainLayoutNoNBox @using Microsoft.AspNetCore.Diagnostics @inject IHttpContextAccessor HttpContextAccessor @inject IWebHostEnvironment Env OOPSIE WOOPSIE!!

@HttpContextAccessor.HttpContext!.Response.StatusCode
@Microsoft.AspNetCore.WebUtilities.ReasonPhrases.GetReasonPhrase( HttpContextAccessor.HttpContext.Response.StatusCode )

OOPSIE WOOPSIE!! Uwu We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!
go home......
@if (Env.IsDevelopment() && ExceptionHandler != null && Ex is not StatusCodeException) {

@Ex.GetType(): @Ex.Message

@Ex.StackTrace
@{ var inner = Ex.InnerException; } @while ( inner != null ) {

(inner) @inner.GetType(): @inner.Message

@inner.StackTrace
inner = inner.InnerException; }
} @code { private IExceptionHandlerFeature? ExceptionHandler => HttpContextAccessor.HttpContext!.Features.Get(); private Exception Ex => ExceptionHandler!.Error; protected override void OnInitialized() { var triggered = (bool?)HttpContextAccessor.HttpContext!.Items[ExceptionCatchingMiddleware.Name_ItemTriggered]; if (triggered != true) throw new StatusCodeException(404); base.OnInitialized(); } }