uds_error_code_t

An enumeration of error codes.

Synopsis:

#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;

Since:

BlackBerry 10.2.0

Data:

UDS_SUCCESS
Indicates that the operation succeeded.
UDS_ERROR_FAILED
Indicates that the operation failed.
UDS_ERROR_DISCONNECTED
Indicates that your app is disconnected from the BlackBerry Hub.
UDS_ERROR_INVALID_ITEM
Indicates that the inbox list item is invalid.

Note that this is currently a placeholder value and is not supported at this time.

UDS_ERROR_NOT_SUPPORTED
Indicates that an operation is not supported.

Note that this is currently a placeholder value and is not supported at this time.

UDS_ERROR_TIMEOUT
Indicates that an operation timed out.
UDS_DUPLICATE_CONFIG
Indicates that a configuration with the same values already exists in the BlackBerry Hub.

Note that this is currently a placeholder value and is not supported at this time.

UDS_INVALID_SERVICE_ID
Indicates that a service ID is invalid.

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().

UDS_INVALID_ACCOUNT_ID
Indicates that an account ID does not exist in the BlackBerry Hub.

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.

Library:

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

Description:

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.