ExceptionBase: ToString

ToString

Returns the exception message prepended with the type name of the Subclass Exception.



 Public Function ToString(
	  Optional ByRef FormattedMessage As String )

Parameters

FormattedMessage
[ByRef] Optional. String. This allows the Subclass to pass in a formatted version of the original message to be used in creating the resulting string. If the message is not passed in, then the internal Environment.GetResourceString method will be used.

Return Values

Variant -  A formatted message containing both the name of the parent subclass and the message itself.

Remarks

A general format might look like this:
VBCorLib.SystemException: An Error has occurred.

A listing of all inner exceptions will be included in the return value.

See Also

Project CorLib Overview

Class ExceptionBase Overview