public method IO2GResponseListener.onRequestFailed

Brief

Processes notification about a request failure.

Declaration
C++
virtual void  onRequestFailed (const char * requestId, const char * error) = 0

Parameters
requestId

The identifier of the failed request. A session object may send multiple requests (see IO2GSession.sendRequest method). The method receives notifications of all the requests that have failed. To make sure you are getting notification about a particular request, you must check if the value of this parameter matches the value obtained by calling IO2GRequest.getRequestID method. For details, see the example below.

error

The server error message. For the list of errors that may be generated during an order processing, refer to the Order Execution Errors section.

Details

In order to process a notification about a request failure, an instance of the class implementing the IO2GResponseListener interface must be subscribed to a session object. It is accomplished by calling the O2GSession.subscribeResponse method.

Example

Proccess notification about a request to get open positions [hide]


Declared in IO2GResponseListener

back