ExceptionBase

ExceptionBase


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


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 VBCorLib Overview

Public:

Properties:

NameDescription
 Data (get)Returns a key/value set of data that is associated to the exception. 
 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. 

Methods:

NameDescription
 EqualsProvides a basic implementation of the Equals function of the IObject interface. 
 GetBaseExceptionGets the original exception that caused the chain of exceptions to occur. 
 GetHashCodeProvides a basic implementation of the GetHashcode function of the IObject interface. 
 GetValueReturns a value being maintained in the exception base class. 
 SetValueSets a value that can be associated with the exception without needing to maintain the value in the Subclass exception class. 
 ToStringReturns the exception message prepended with the type name of the Subclass Exception.