navigator_invoke_event_get_error_code()

Get the error code associated with an invoke request.

Synopsis:

#include <bps/navigator_invoke.h>
 
BPS_API int navigator_invoke_event_get_error_code(bps_event_t *event)

Since:

BlackBerry 10.2.0

Arguments:

event

The event associated with the invoke request whose result has an error code set.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The navigator_invoke_event_get_error_code() function returns the error code of invoke request responses. The error code is set when navigator_event_get_err() is not NULL and bps_event_get_code() is one of:
  • NAVIGATOR_INVOKE_TARGET_RESULT
  • NAVIGATOR_INVOKE_SET_FILTERS_RESULT
  • NAVIGATOR_INVOKE_QUERY_RESULT
  • NAVIGATOR_INVOKE_GET_FILTERS_RESULT

Returns:

The error code of the request upon success, BPS_FAILURE with errno set otherwise.