Get the syntax or execution error as an exception.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
SyntaxErrorException Exception { get; }
ReadOnly Property Exception As ErrorException
Get
property ErrorException^ Exception {
ErrorException^ get ();
}
Property Value
ErrorException
The constructed exception for the syntax or execution error.
Remarks
Get the syntax or execution error as an exception.
This property works in conjunction with the other error properties to
allow your application access to the exact source
and cause of a WinWrap Basic syntax or execution error.
Example
Throw an exception when LoadModule fails.
if (!basicIdeCtl1.LoadModule("ABC.BAS"))
{
throw basicIdeCtl1.Error.Exception;
}
If Not BasicIdeCtl1.LoadModule("ABC.BAS") Then
Throw BasicIdeCtl1.Error.Exception
End If
if (!basicIdeCtl1->LoadModule("ABC.BAS"))
{
throw basicIdeCtl1->Error->Exception;
}
See Also