Original Post
I am attempting to write an error logger and I need to capture the method that threw the error. The exception only contains the deeper down methods that caused the error. Say my method is called 'InsertData' and it calls a stored procedure. I want my logger to record that 'InsertData' caused the error not 'Void OnError(System.Data.SqlClient.SqlException, Boolean)'.