Throw vs Throw ex(thesprage.com)

submitted by Aaronls79Aaronls79(425) 5 years, 1 month 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.

1 comment |category: |Views: 115

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by anderskj1anderskj1(0) 5 years, 1 month ago 0

Pretty simular to my blog entry from October www.pings.dk/blog

Reply

information Login or create an account to comment on this story