Throw vs Throw ex(thesprage.com)
submitted by
Aaronls79(425) 5 years, 5 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...
|category: VB.NET
|Views: 35
tags:
Exception VB.NET another
Everyones tags:
Your Tags: