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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.