ErrorCode

object ErrorCode

A list of error codes. Each of these values is included in the specific exception.

Since

1.0.0

Properties

Link copied to clipboard
const val ERR_ACCESS_CONTROL: Int = 2003

The calling app is not allowed to use the feature.

Link copied to clipboard
const val ERR_CHILD_ACCOUNT_ACCESS: Int = 2005

This occurs when the Samsung account that is set up in the Samsung Health app is a child account.

Link copied to clipboard
const val ERR_CONNECTION_FAIL: Int = 9004

The connection continues to fail.

Link copied to clipboard
const val ERR_CONNECTION_TIMEOUT: Int = 9006

The connection request timed out.

Link copied to clipboard
const val ERR_DB_ERROR: Int = 9000

An internal database error in the Samsung Health app.

Link copied to clipboard
const val ERR_INTERNAL_ERROR: Int = 9003

An internal error that will not be resolved even when the client retries.

Link copied to clipboard
const val ERR_INTERRUPTED: Int = 9005

The operation is stopped by an interrupt.

Link copied to clipboard
const val ERR_INVALID_CALLER: Int = 1002

The calling app's UID is invalid. This error may occur when the app uses the API on another caller's binder.

Link copied to clipboard

The Samsung Health app is unable to encrypt/decrypt user health data due to a problem with the key.

Link copied to clipboard
const val ERR_INVALID_INPUT: Int = 1001

The input data is invalid, such as being out of range, or it cannot be handled for an unknown reason.

Link copied to clipboard

This occurs when the Samsung Health app's signature is invalid. This may happen when installing an improper version of the Samsung Health app.

Link copied to clipboard
const val ERR_INVALID_UID: Int = 1000

The requested data's UID is invalid and could not be found.

Link copied to clipboard
const val ERR_NO_OWNERSHIP_TO_WRITE: Int = 2002

The calling app tried to update or delete data that did not insert. Only data provided by the app can be updated or deleted.

Link copied to clipboard
const val ERR_NO_USER_PERMISSION: Int = 2000

This occurs when a data access request has not acquired data permission from the user.

Link copied to clipboard
const val ERR_OLD_VERSION_PLATFORM: Int = 3001

The installed version of the Samsung Health app is below the required version to run this SDK feature.

Link copied to clipboard
const val ERR_OUT_OF_SPACE: Int = 9002

There is not enough space to store any more user health data.

Link copied to clipboard
const val ERR_PLATFORM_DISABLED: Int = 3002

The Samsung Health app has been installed, but it is disabled.

Link copied to clipboard
const val ERR_PLATFORM_DISCONNECTED: Int = 9007

The Samsung Health app got disconnected.

Link copied to clipboard

The Samsung Health app is installed, but the user has not completed the initialization process, such as agreeing to the terms and conditions.

Link copied to clipboard

THe Samsung Health app is not installed.

Link copied to clipboard
const val ERR_UNSUPPORTED_OPERATION: Int = 2001

This occurs when an unsupported operation is requested.

Preferences Submitted

You have successfully updated your cookie preferences.