Gets a code that identifies the type of error.
|
|---|
'Declaration
Public ReadOnly Property Code As String |
Property Value
A code that identifies the type of error.
The following example displays the
System.Exception.Message and
Code properties of the exception.
|
|---|
public void DisplayFreshBooksErrorCollection(FreshBooksException myException) {
MessageBox.Show("Message: " + myException.Message + "\n" +
"Code: " + myException.Code.ToString());
} |
|
|---|
Public Sub DisplayFreshBooksErrorCollection(myException As FreshBooksException)
MessageBox.Show("Message: " + myException.Message + ControlChars.Cr _
+ "Code: " + myException.Code.ToString())
End Sub |