Пример #1
0
        public ActionResult Throw()
        {
            TestLog(Utils.Test.GetRedisException());

            var ex = new Exception("This is an exception thrown from the Samples project! - Check out the log to see this exception.");

            // here's how your catch/throw might can add more info, for example SQL is special cased and shown in the UI:
            ex.Data["SQL"]          = "Select * From FUBAR -- This is a SQL command!";
            ex.Data["Redis-Server"] = "REDIS01";
            ex.Data["Not-Included"] = "This key is skipped, because it's not in the web.config pattern";
            ex.AddLogData("Via Extension", "Some logged data via the .AddLoggedData() method!");
            throw ex;
        }