Get the syntax or execution error as an exception.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxpublic ErrorException Exception { get; }
Public ReadOnly Property Exception As ErrorException
Get
public:
virtual property ErrorException^ Exception {
ErrorException^ get () sealed;
}
Property Value
ErrorException
The constructed exception for the syntax or execution error.
Implements
IErrorException
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