Throws an exception in a unified manner.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Shared Sub ThrowException( _
ByVal exception As System.Exception, _
ByVal errorDialogCaption As System.String _
) |
Parameters
- exception
- An exception to be thrown.
- errorDialogCaption
- A caption for the dialog that will show the error message of the specified exception.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also