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

How to Use Exceptions Properly

Understanding the exception mechanism is certainly important; equally important is understanding how to use exceptions wisely. All too often I see library developers catching all kinds of exceptions, preventing the application developer from knowing that a problem occurred. In this section, I offer some guidelines that all developers should be aware of when using exceptions.

Important

Important

If you’re a class library developer, developing types that will be used by other developers, take these guidelines very seriously. You have a huge responsibility: you’re trying to design the type’s interface so that its implicit assumptions ...

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