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.