@model TightWiki.Models.ViewModels.Admin.ExceptionsViewModel @using TightWiki.Library @using TightWiki.Models @{ Layout = "/Views/Shared/_Layout.cshtml"; var sessionState = ViewData["SessionState"] as TightWiki.SessionState ?? throw new Exception("Wiki State Context cannot be null."); }

Exceptions

Server and page exceptions.

@if (!string.IsNullOrEmpty(Model.ErrorMessage)) {
@Html.Raw(Model.ErrorMessage)
} @if (!string.IsNullOrEmpty(Model.SuccessMessage)) {
@Html.Raw(Model.SuccessMessage)
} @Html.Raw(TightWiki.Library.ConfirmActionHelper.GenerateWarnLink(GlobalConfiguration.BasePath, "This will permanently purge all exceptions. Continue?", "Purge Exceptions", "/Admin/PurgeExceptions", Context.Request.Path.Value))

@using (Html.BeginForm(null, null, FormMethod.Get, new { action = $"{GlobalConfiguration.BasePath}{Context.Request.Path}" })) { @if (Model.Exceptions.Count > 0) { @foreach (var ex in Model.Exceptions) { }
Id Text Exception Date/Time
@ex.Id @ex.Text @ex.ExceptionText @ex.CreatedDate
@Html.Raw(TightWiki.Library.PageSelectorGenerator.Generate(Context.Request.QueryString, Model.PaginationPageCount)) } else {
The exception log is currently empty.
} }