Exceptions that could not be caught

A curious question was raised during one of a conducted interview. Could the StackOverflowException be caught? I thought it could. And it was but only until framework v2. Since the second framework it is impossible to catch such an exception, msdn says. Msdn says that such a feature requires a lot code to support it. So Microsoft declines its support. You have to predict such a situation in your code base by yourself.

Advertisements
This entry was posted in .NET, C#. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s