异常设计准则Design Guidelines for Exceptions

与基于返回值的错误报告相比,异常处理具有许多优点。Exception handling has many advantages over return-value-based error reporting. 良好的框架设计有助于应用程序开发人员理解异常的优势。Good framework design helps the application developer realize the benefits of exceptions. 本节讨论异常的优势,并提供如何有效使用它们的准则。This section discusses the benefits of exceptions and presents guidelines for using them effectively.

本节内容In This Section

异常引发Exception Throwing
使用标准异常类型Using Standard Exception Types
异常和性能Exceptions and Performance
部分©2005,2009 Microsoft Corporation。保留所有权利。Portions © 2005, 2009 Microsoft Corporation. All rights reserved.

*在 Pearson Education, Inc. 授权下,由 Addison-Wesley Professional 作为 Microsoft Windows 开发系列的一部分再版自 Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries, 2nd Edition(Framework 设计准则:可重用 .NET 库的约定、惯例和模式第 2 版),由 Krzysztof Cwalina 和 Brad Abrams 发布于 2008 年 10 月 22 日。Reprinted by permission of Pearson Education, Inc. from Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries, 2nd Edition by Krzysztof Cwalina and Brad Abrams, published Oct 22, 2008 by Addison-Wesley Professional as part of the Microsoft Windows Development Series.

另请参阅See also