onError

onError — a virtual method invoked on receipt of an error message.

Synopsis

For C++:
virtual void onError (status,  
 err_str,  
 cmd,  
 parms); 
ST_STATUS status;
LPCTSTR err_str;
LPCTSTR cmd;
LPCTSTR parms;
 
For Java and C#:
virtual void onError (status,  
 err_str,  
 cmd,  
 parms); 
int status;
String err_str;
String cmd;
String parms;
 

Parameters

status

The status code returned by the the DataHub instance.

err_str

The error string, providing more detailed information about the error.

cmd

The original command sent to the DataHub instance to which this reply corresponds.

parms

The list of parameters sent as part of the command, as a single space-separated string, or NULL[9] if none are returned. If the command involved multiple parameters, the list may be truncated.

Description

This virtual method is invoked on receipt of an error message.

See Also

getErrString, onSuccess, onConnectionSuccess, onConnectionFailure



[9] null in Java and C#.