SpelException Class
The SpelException class is derived from the ApplicationException class. It adds an ErrorNumber property and some constructors.
Here is an example, showing how to retrieve the error number and the error message.
VB Example:
Try
m_spel.Go(1)
Catch (ex As RCAPINet.SpelException)
MsgBox(ex.ErrorNumber & ": " & ex.Message)
End Try
C# Example:
try{
m_spel.Go(1);
}
catch(RCAPINet.SpelException ex){
MessageBox.Show(string.Format("{0}: {1}", ex.ErrorNumber, ex.Message));
}
SpelException Properties
ErrorNumber As Integer
SpelException Methods
Sub New ()
The default constructor.
Sub New (Message As String)
The optional constructor that specifies an error message.
Sub New (ErrorNumber As Integer, Message As String)
The optional constructor that specifies the error number and associated message.
Sub New (Message As String, Inner As Exception)
The optional constructor that specifies the error message and inner exception.
Sub New (ErrorNumber As Integer, Message As String, Inner As Exception)
The optional constructor that specifies the error number, error message, and inner exception.