Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Bugsnag.Clients;
- using System;
- using System.Web.Mvc;
- namespace MyAwesomeWebApp
- {
- [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = true)]
- public sealed class BugsnagExceptionHandler : HandleErrorAttribute
- {
- internal BugsnagExceptionHandler()
- {
- }
- public override void OnException(ExceptionContext filterContext)
- {
- if (filterContext == null || filterContext.Exception == null)
- return;
- if (Bugsnag.Clients.WebMVCClient.Config.AutoNotify)
- WebMVCClient.Notify(filterContext.Exception);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement