Skip to content

Instantly share code, notes, and snippets.

@codereflection
Created June 8, 2011 23:20
Show Gist options
  • Select an option

  • Save codereflection/1015705 to your computer and use it in GitHub Desktop.

Select an option

Save codereflection/1015705 to your computer and use it in GitHub Desktop.
This is how you test Elmah...
using System;
using System.Web.Mvc;
namespace Ris.Conduit.Web.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
public ViewResult HoneyBader()
{
throw new HoneyBadgerException("Don't Care");
}
}
internal class HoneyBadgerException : Exception
{
public HoneyBadgerException(string message)
: base(message)
{ }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment