Stories recently tagged with 'ExceptionHandling'

Exception Handling - Do's and Dont's(dotnethitman.spaces.live.com)

submitted by misbaharefinmisbaharefin(845) 4 years ago

Exceptions provide a consistent mechanism for identifying and responding to error conditions. Effective exception handling will make code more robust and easier to debug. Exceptions are a tremendous debugging aid because they help answer... read more...

add a comment |category: |Views: 71

tags: another

Throw vs Throw ex(thesprage.com)

submitted by Aaronls79Aaronls79(425) 5 years, 4 months ago

A common mistake a lot of new .Net developers do is using Throw ex instead of just Throw. The difference between Throw ex and Throw is very simple but can cause major headaches when it comes to maintenance. If you use Throw ex it overwrites the stack trace this makes it very hard to find the original line of the thrown exception as you can see in the example I have provided. read more...

1 comment |category: |Views: 120

tags: another