Everyone is familiar with the default error handler for ASP.NET. Yellow fields containing the Source error (5 lines of code where the error occurred) and the Source file (file name and line number):
Source Error:
Line 48: public ActionResult TriggerException()
Line 49: {
Line 50: throw new SystemException("This is a generated exception to test the global error handler.");
Line 51: }
Line 52:
Source File: c:\MyApp\Controllers\TestToolsController.cs Line: 50
I create my own error handler and want to get the same pieces of information, but they are not contained in the exception object. Does anyone know how I can get these items.
source
share