public void nested_exceptions_with_log_inner_not_allowed()
        {
            var client = new FakeAirbrakeClient();
            var exception = new Exception("outer exception", new Exception("inner exception"));

            exception.SendToAirbrake(false, null, client);

            Assert.AreEqual(1, client.SentExceptions.Count);
            Assert.AreEqual(1, client.SentNotices.Count);
            Assert.AreEqual("outer exception", client.SentExceptions[0].Message);

        }
        protected override void LogException(Exception e, HttpContext context)
        {
            if (e == null)
                throw new ArgumentNullException("e");

            var args = new ExceptionFilterEventArgs(e, context);
            OnFiltering(args);

            if (args.Dismissed)
                return;

            try
            {
                e.SendToAirbrake();
            }
            catch (Exception localException)
            {
                Trace.WriteLine(localException);
            }
        }