O'Reilly logo

Applied Microsoft® .NET Framework Programming by Jeffrey Richter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What’s Wrong with the FCL

In this chapter, I’ve given you my recommendations for working with exceptions. These recommendations are based on conversations with many developers and my own experience writing code for many years. In the previous section, I mentioned that many of the FCL exception types are missing a constructor that allows the inner exception to be set. This is just one type of bug in the FCL. Unfortunately, the FCL contains many more bugs related to exception handling. In this section, my intent is to make you aware of these bugs so that you won’t waste as much time as I have trying to figure out what’s going on when your code doesn’t work quite as you expect.

Microsoft hasn’t followed a lot of the guidelines that I describe in this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required