We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent def8a60 commit 2daea2bCopy full SHA for 2daea2b
Source/Samples/SampleMvc/Controllers/HomeController.cs
@@ -1,5 +1,6 @@
1
using System;
2
using System.Threading;
3
+using System.Web;
4
using System.Web.Mvc;
5
6
namespace Exceptionless.SampleMvc.Controllers {
@@ -29,6 +30,11 @@ public ViewResult CustomError() {
29
30
return View("CustomError");
31
}
32
33
+ [HttpGet]
34
+ public ViewResult FourZeroFour() {
35
+ throw new HttpException(404, "custom 404");
36
+ }
37
+
38
[HttpPost]
39
public JsonResult AjaxMethod(SomeModel model) {
40
throw new ApplicationException("Error on AJAX call.");
0 commit comments