Constructors: NewException

NewException

Creates a new Exception object.



 Public Function NewException(
	  ByRef Message As String,
	  Optional ByVal ErrorNumber As Long = vbInvalidProcedureCall,
	  Optional ByVal InnerException As Exception ) As Exception

Parameters

Message
[ByRef] String. A human-readable message explaining the exception.
ErrorNumber
[ByVal] Optional. Long. Represents a VBA specific error number.  

Default: vbInvalidProcedureCall

InnerException
[ByVal] Optional. Exception. An exception that caused this exception.

Return Values

Exception -  The fully created Exception object.

Remarks

The default error number is 5-Invalid Procedure Call.

See Also

Project CorLib Overview

Class Constructors Overview

Exception