Ahm Exception Framework 3.0 Sample Application
Exception Scenario
Click on the button/link below to test
This sample shows the flow of AhmSystemException. The ASPX code behind calls BLL.cs which calls DAL.cs. An AhmSystemException is created and thrown in DAL, rethrown to BLL which logs it with additional information and rethrows it to ASPX page. The ASPX page alos logs some additional information and throws it. The thrown exception is then caught by Custom Error Handling and logged as IIS exception.
This sample tests the flow of BusinessException. The ASPX code behind calls the BLL.cs which throws a business exception. The exception is thrown to the ASPX code behind, caught and then an error gets displayed to the user.
This sample tests the flow of AhmSystemException while a serverside HttpWebRequest call is made to an HttpHandler. The handler logs an AhmSystemException and sets an Response Status Code to 601 along with the error xml which contains the Base Exception flags.
This sample tests the flow of AhmSystemException while a serverside HttpWebRequest call is made to an HttpHandler. The web exception is then logged. New base exception values should be created since the AhmException logged
This sample shows logging of application exception. i.e. when a exception is logged by passing in an empty exception and an error message.
Testing 404 Error with ASPX page
Test 404 Error
Testing 404 Error with htm page
Test 404 Error
Testing 404 Error with image not present