System.Exception, Naming Conventions and Specialization

System.Exception is the most general exception and can represent all kinds of errors occurring in applications. It is also the base class for derived exceptions, which are specific to situations you may encounter. For example, the System.IOException derives from System.Exception, is thrown when the application encounters input/output errors when accessing the disk, and can be handled only for this particular situation. On the other hand, System.Exception can handle not only this situation but also any other occurring errors. You can think of System.Exception as of the root in the exceptions hierarchy. We explain later in code the hierarchy of exception handling. Classes representing exceptions ...

Get Visual Basic® 2010 Unleashed 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.