Objective 5.1: Design for Error Handling

Using an effective exception handling strategy maximizes code readability, simplifies troubleshooting, and minimizes security risks. This objective provides an overview of configuring exception handling for Microsoft Windows applications.

Designing an Exception Handling Strategy

Although a bug in your application might cause an exception, exceptions themselves are not bugs. In fact, a well-designed application intentionally throws exceptions when required resources cannot be found, when users make unauthorized requests, and when the server cannot process additional requests.

Unhandled ...

Get MCPD 70-518 Exam Ref: Designing and Developing Windows® Applications Using Microsoft® .NET Framework 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.