The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Exception.cshtml 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @model Teknik.Areas.Error.ViewModels.ErrorViewModel
  2. @using Teknik.Utilities
  3. @Scripts.Render("~/bundles/error")
  4. <script>
  5. var submitErrorReportURL = '@Url.SubRouteUrl("error", "Error.Action", new { action = "SubmitErrorReport" })';
  6. </script>
  7. <div class="container">
  8. <div class="row">
  9. <div class="col-md-12">
  10. <div class="error-template text-center">
  11. <h1>Unexpected Error</h1>
  12. <div class="error-details">
  13. <p>Uh oh! You aren't supposed to be seeing this. Something went horribly wrong.</p>
  14. <div class="error-actions">
  15. <a href="@Url.SubRouteUrl("www", "Home.Index")" class="btn btn-default btn-lg">
  16. <span class="glyphicon glyphicon-home"></span>
  17. Take Me Home
  18. </a>
  19. @if (Model != null && Model.Exception != null)
  20. {
  21. <div class="btn btn-primary btn-lg" id="submitErrorReport">
  22. <span class="fa fa-bug"></span>
  23. Submit Bug Report
  24. </div>
  25. }
  26. </div>
  27. @if (Model != null && Model.Exception != null)
  28. {
  29. <br />
  30. <div class="show-more" id="view-details">
  31. <button role="button" class="btn btn-default btn-sm view-details-button" data-toggle="collapse" data-target="#errorMsg">Show Details</button>
  32. </div>
  33. <div class="text-left collapse" id="errorMsg">
  34. <br />
  35. <p>
  36. <b>Exception:</b> @Model.Exception.GetFullMessage(true)
  37. <br/>
  38. <b>Source:</b> @Model.Exception.Source
  39. </p>
  40. <div style="overflow: scroll">
  41. <pre>@Model.Exception.StackTrace</pre>
  42. </div>
  43. </div>
  44. }
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </div>