I have many methods which are calling using Delegate.DynamicInvoke. Some of these methods make database calls and I would like to have the ability to catch a SqlException and not catch the TargetInvoc
I am considering using boost exception handling in my application. The main benefit from adopting boost exception handling is I can add metadata to the exceptions. This can ease debugging and allow mo
I have a Visual Studio 2010 solution consisting of 2 projects开发者_Python百科: Core, a C# class library project which handles the functionality and data access
Am upgrading Rails 2.1.1 to rails 2.3.8. Previously i was able to catch Mysql::Error in the rescue_action_in_public method defined in application_controller. After upgrading to 2.3.8 version, the \'re
I\'m not even sure what the right words are to search for. I want to display parts of the error object in an except block (similar to the err object in VBScript, which has Err.Number and Err.Descripti
I\'m making an API and have a function which takes a task and runs it.When the task is finished successfully, it\'s status is set to \'Completed\'.Now, lets say the user of the API accidentally (or fo
This question already has answers here: Multiple try-catch or one? (11 answers) Closed 2 years ago. I\'m working on cleaning up some of my code and I came to a point where I wasn\'t sure
Should I wrap every exception in a more meaningful exception? Wrapping meaning make the exception an inner exception of a new exception, and throw the \"new\" exception.
Once in a while, I notice some coding pattern that I\'ve had for years and it makes me nervous. I don\'t have a specific problem, but I also don\'t remember enough about why I adopted that pattern, an
When there is an exception thrown in my program, and it is unhandled, I expect the debugger to break in my program and show me what the problem is.This doesn\'t happen.Instead, my program simply exits