Skip to content

Commit 2daea2b

Browse files
committed
Added sample for #48
1 parent def8a60 commit 2daea2b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Source/Samples/SampleMvc/Controllers/HomeController.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Threading;
3+
using System.Web;
34
using System.Web.Mvc;
45

56
namespace Exceptionless.SampleMvc.Controllers {
@@ -29,6 +30,11 @@ public ViewResult CustomError() {
2930
return View("CustomError");
3031
}
3132

33+
[HttpGet]
34+
public ViewResult FourZeroFour() {
35+
throw new HttpException(404, "custom 404");
36+
}
37+
3238
[HttpPost]
3339
public JsonResult AjaxMethod(SomeModel model) {
3440
throw new ApplicationException("Error on AJAX call.");

0 commit comments

Comments
 (0)