GetErrorCode Method
Returns an error code that identifies the error. Not all exception types support this but it can be of use for certain types if the app wants to have special business logic to handle an error
Syntax
System.string GetErrorCode(
System.Exception ex
)Function GetErrorCode( _
ByVal ex As System.Exception _
) As System.StringParameters
| Name | Description |
|---|---|
| ex | The exception object to be parsed. |
Return Value
The error code associated with the exception. This may be null or empty if the exception type does not support error codes.