PageRenderTime 79ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/Signum.Web/Signum/Views/Error.generated.cs

http://github.com/signumframework/signumframework
C# | 171 lines | 98 code | 64 blank | 9 comment | 1 complexity | 022fa1dd17a32acc4918f4bdca259f22 MD5 | raw file
Possible License(s): LGPL-3.0
  1. #pragma warning disable 1591
  2. //------------------------------------------------------------------------------
  3. // <auto-generated>
  4. // This code was generated by a tool.
  5. // Runtime Version:4.0.30319.18010
  6. //
  7. // Changes to this file may cause incorrect behavior and will be lost if
  8. // the code is regenerated.
  9. // </auto-generated>
  10. //------------------------------------------------------------------------------
  11. namespace Signum.Web.Views
  12. {
  13. using System;
  14. using System.Collections.Generic;
  15. using System.IO;
  16. using System.Linq;
  17. using System.Net;
  18. using System.Text;
  19. using System.Web;
  20. using System.Web.Helpers;
  21. using System.Web.Mvc;
  22. using System.Web.Mvc.Ajax;
  23. using System.Web.Mvc.Html;
  24. using System.Web.Routing;
  25. using System.Web.Security;
  26. using System.Web.UI;
  27. using System.Web.WebPages;
  28. using Signum.Entities;
  29. using Signum.Utilities;
  30. using Signum.Web;
  31. [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
  32. [System.Web.WebPages.PageVirtualPathAttribute("~/Signum/Views/Error.cshtml")]
  33. public class Error : System.Web.Mvc.WebViewPage<HandleErrorInfo >
  34. {
  35. public Error()
  36. {
  37. }
  38. public override void Execute()
  39. {
  40. #line 1 "..\..\Signum\Views\Error.cshtml"
  41. this.ViewBag.Title = "Error";
  42. #line default
  43. #line hidden
  44. WriteLiteral("<div id=\"main-home\">\r\n");
  45. #line 6 "..\..\Signum\Views\Error.cshtml"
  46. if (Model.Exception is ApplicationException)
  47. {
  48. #line default
  49. #line hidden
  50. WriteLiteral(" <h1>");
  51. #line 8 "..\..\Signum\Views\Error.cshtml"
  52. Write(Model.Exception.Message);
  53. #line default
  54. #line hidden
  55. WriteLiteral("</h1>\r\n");
  56. #line 9 "..\..\Signum\Views\Error.cshtml"
  57. }
  58. else
  59. {
  60. #line default
  61. #line hidden
  62. WriteLiteral(" <h1>");
  63. #line 12 "..\..\Signum\Views\Error.cshtml"
  64. Write("Error " + this.ViewContext.HttpContext.Response.StatusCode);
  65. #line default
  66. #line hidden
  67. WriteLiteral("</h1>\r\n");
  68. WriteLiteral(" <h2>");
  69. #line 13 "..\..\Signum\Views\Error.cshtml"
  70. Write("Error thrown");
  71. #line default
  72. #line hidden
  73. WriteLiteral("</h2>\r\n");
  74. #line 14 "..\..\Signum\Views\Error.cshtml"
  75. }
  76. #line default
  77. #line hidden
  78. WriteLiteral(" <div class=\"error-region\">\r\n <p>\r\n <span>Controller: </span" +
  79. ">\r\n <code>\r\n ");
  80. #line 19 "..\..\Signum\Views\Error.cshtml"
  81. Write(Model.ControllerName);
  82. #line default
  83. #line hidden
  84. WriteLiteral("\r\n </code>\r\n </p>\r\n <p>\r\n <span>Action: </spa" +
  85. "n>\r\n <code>\r\n ");
  86. #line 25 "..\..\Signum\Views\Error.cshtml"
  87. Write(Model.ActionName);
  88. #line default
  89. #line hidden
  90. WriteLiteral("\r\n </code>\r\n </p>\r\n </div>\r\n <div class=\"error-region\">\r\n" +
  91. " <span>Message: </span>\r\n <pre>\r\n <code>\r\n " +
  92. " ");
  93. #line 33 "..\..\Signum\Views\Error.cshtml"
  94. Write(Model.Exception.Message);
  95. #line default
  96. #line hidden
  97. WriteLiteral("\r\n </code>\r\n </pre>\r\n <span>StackTrace: </span>\r\n " +
  98. " <pre>\r\n <code>\r\n ");
  99. #line 39 "..\..\Signum\Views\Error.cshtml"
  100. Write(Model.Exception.StackTrace);
  101. #line default
  102. #line hidden
  103. WriteLiteral("\r\n </code>\r\n </pre>\r\n </div>\r\n</div>\r\n");
  104. }
  105. }
  106. }
  107. #pragma warning restore 1591