ErrorInnerException Property |
Get the exception that caused the error.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxpublic Exception? InnerException { get; }
Public ReadOnly Property InnerException As Exception
Get
public:
virtual property Exception^ InnerException {
Exception^ get () sealed;
}
Property Value
Exception
The exception for the execution error. Might be Nothing.
Implements
IErrorInnerException
Remarks
Get the exception that caused the error.
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
Display the exception for the ErrorAlert event:
private void basicIdeCtl1_ErrorAlert(object sender, System.EventArgs e)
{
MessageBox.Show("Error.InnerException = " + basicIdeCtl1.Error.InnerException.ToString());
}
Private Sub BasicIdeCtl1_ErrorAlert ( ByVal sender As Object, ByVal e As System.EventArgs)
MessageBox.Show("Error.InnerException = " & BasicIdeCtl1.Error.InnerException.ToString)
End Sub
private: System::Void basicIdeCtl1_ErrorAlert(System::Object ^ sender, System::EventArgs ^ e)
{
MsgBox::Show(L"Error->InnerException = " + basicIdeCtl1->Error->InnerException.ToString());
}
See Also