ExceptionBase

ExceptionBase


This is a helper class to easily manage an exception type class.


Public:

Properties:

NameDescription
 Data (get) Returns a key/value set of data that is associated to the exception.  
 ErrorNumber (get) Returns the current VB error number associated with this exception.  
 ErrorNumber (let) Sets the VB error number for this exception instance.  
 HelpLink (get) Gets a link to a help file associated with the exception.  
 HelpLink (let) Sets a link to a help file associated with the exception.  
 HResult (get) Gets the HResult the current exception represents.  
 HResult (let) Sets the HResult the current exception represents.  
 InnerException (get) Gets the exception that caused the Subclassed exception to be thrown.  
 InnerException (set) Sets the exception that caused the Subclassed exception to be thrown.  
 Message (get) Gets the error message associated with the Subclass exception.  
 Message (let) Sets the error message associated with the Subclass exception.  
 Source (get) Gets a description of the source of the exception.  
 Source (let) Sets a description of the source of the exception.  
 TypeName (get) 

Methods:

NameDescription
 GetBaseException Gets the original exception that caused the chain of exceptions to occur.  
 GetValue Returns a value being maintained in the exception base class.  
 SetValue Sets a value that can be associated with the exception without needing to maintain the value in the Subclass exception class.  
 ToString Returns the exception message prepended with the type name of the Subclass Exception.  

Remarks

This class should be used as a contained object that functions can be delegated to and performed with. This class contains the primary functions and properties common to all exceptions.

If the user-derived exception class needs to handle more information than this base class manages, then the developer needs to implement those additional features directly into the derived class.

See Also

Project CorLib Overview

Class ExceptionBase Overview