Constructors: NewExceptionBase |
Creates a new ExceptionBase object that can be contained within an exception class.
Public Function NewExceptionBase( ByVal Subclass As Exception, Optional ByVal AppObject As Object ) As ExceptionBase
Most exception classes simply contain this information to be retrieved for viewing. Few exception classes have additional requirements. This class can be used to handle the default set of information for an exception class. By containing this class inside the exception class, the exception class can delegate calls to this class for standard handling.
If additional values need to be maintained, then this class also supports the ability to set and get additional values using a string name as the key. TheArgumentException class uses this to hold the name of the parameter that caused the exception.
This class is persistable and will also attempt to persist the custom values that have been added to it. If the persistence fails, then an error will occur.