Constructors: NewExceptionBase

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

Parameters

Subclass
[ByVal] Exception. The containing exception class that will contain this object instance.
AppObject
[ByVal] Optional. Object. The App object of the application that contains the exception class.

Return Values

ExceptionBase -  A new base class used for default handling of exception routines.

Remarks

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.

See Also

Project CorLib Overview

Class Constructors Overview

ExceptionBase