Data for Exception Handling

Source: Internet
Author: User

Exception Overview

Http://msdn.microsoft.com/zh-cn/library/6kzk0czb (V = vs.80). aspx

Excerpt: The Runtime library uses an exception handling Model Based on exception objects and protected code blocks. When an exception occurs, create an exception object to indicate the exception.
. The runtime creates an exception information table for each executable file. In the exception information table, each method of the executable file has an associated exception.
Information array (can be empty ). Each item in the array describes a protected code block, any exception filters associated with the code, and any differences
A common handler (catch Statement ). This exception table is very effective and has no performance loss during CPU time or memory usage when no exception occurs.
. Use resources only when exceptions occur.

How to: ing hresult and exception
Abnormal conversion during interoperation between COM and. net
Http://msdn.microsoft.com/zh-cn/library/9ztbc5s1.aspx

Exception hierarchy
Http://msdn.microsoft.com/zh-cn/library/z4c5tckx (V = vs.80). aspx
Introduction to classes inherited from systemexception

Systemexception
Defines the base class for the predefined exception in the system namespace.
Http://msdn.microsoft.com/zh-cn/library/system.systemexception (V = vs.80). aspx

Applicationexception
Http://msdn.microsoft.com/zh-cn/library/system.applicationexception (V = vs.80). aspx
Applicationexception is caused by a user program, rather than by a common language runtime. If you are planning to create your own exceptions
Application, derived from the applicationexception class. Applicationexception extends exception, but does not add new features.
This exception is provided as a way to differentiate application-defined exceptions from system-defined exceptions.
Applicationexception does not provide information about the cause of the exception. In most cases, this type of instance should not be triggered. If this type is attached to an instance
The readable message describing the error should be passed to the constructor.
Applicationexception uses the hresult cor_e_application with a value of 0x80131600. For a list of initial attribute values of an applicationexception instance, see applicationexception constructor.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.