An enumeration of error codes.
#include "bb/pim/unified/unified_data_source.h"
typedef enum {
UDS_SUCCESS = 0
UDS_ERROR_FAILED = 501
UDS_ERROR_DISCONNECTED = 502
UDS_ERROR_INVALID_ITEM = 503
UDS_ERROR_NOT_SUPPORTED = 504
UDS_ERROR_TIMEOUT = 505
UDS_DUPLICATE_CONFIG = 601
UDS_INVALID_SERVICE_ID = 602
UDS_INVALID_ACCOUNT_ID = 603
} uds_error_code_t;
BlackBerry 10.2.0
Note that this is currently a placeholder value and is not supported at this time.
Note that this is currently a placeholder value and is not supported at this time.
Note that this is currently a placeholder value and is not supported at this time.
This error code might be returned if your app tries to add data, such as an inbox list item, to the BlackBerry Hub without first registering by calling uds_register_client().
This error code might be returned if the account ID that you provide in a function call does not match the one that was used by uds_account_added(). It might also be returned if the account that you're trying to work with doesn't exist in the BlackBerry Hub.
These codes are returned by several functions that manipulate data in the BlackBerry Hub, such as uds_init(), uds_register_client(), and uds_item_added(). These codes correspond to common errors that might occur when you call functions in this API, such as disconnection from the BlackBerry Hub, invalid inbox list item, and timeouts. You can use these codes to handle errors properly in your app.