onError

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

Syntax

For C++:

virtual void onError (ST_STATUS  status,
 LPCTSTR  err_str,
 LPCTSTR  cmd,
 LPCTSTR  parms);

For Java and C#:

virtual void onError (int  status,
 String  err_str,
 String  cmd,
 String  parms);

Parameters

status

The status code returned by the DataHub.

err_str

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

cmd

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

parms

The list of parameters sent as part of the command, as a single space-separated string, or NULL[12] 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



[12] null in Java and C#.