June 2006
Intermediate to advanced
1344 pages
42h 52m
English
In Visual Basic, the exception-handling mechanism allows only objects of class Exception (namespace System) and its derived classes to be thrown and caught. Visual Basic programs may interact with software components written in other .NET languages (such as C++) that do not restrict exception types. Such exceptions are wrapped by the CLR as Exception objects, so they can be caught by a Catch clause of type Exception.
This section overviews several of the .NET Framework’s exception classes and focuses exclusively on exceptions that derive from class Exception. In addition, we discuss how to determine whether a particular method throws exceptions.
Class Exception ...
Read now
Unlock full access