Error Handling & Custom Exceptions (C#.NET)
Posted on 2007-11-13
I have a fairly large .NET 1.1 Web App.
In this application I have a class (SQL.cs) that handles all calls to the DB (SQL Server 2000). There are aproximately 150+ different static functions with calls to the DB.
I would like to build something that would throw an exception every time one of these functions crashes, that will (1) let me write some information about the error to a error log in my DB and (2) give me information or at least the name of the Stored procedure that was called during the error.
Any help would be appreciated.