Package-level declarations

Types

Link copied to clipboard
class AuthorizationException(errorCode: Int?, errorMessage: String) : HealthDataException

An exception to indicate that the app is not authorized to perform the specified operation.

Link copied to clipboard
object ErrorCode

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

Link copied to clipboard
open class HealthDataException @JvmOverloads constructor(val errorCode: Int?, val errorMessage: String, cause: Throwable? = null) : RuntimeException

An exception thrown by the Samsung Health app. This contains one of the ErrorCodes and a message with details of the error.

Link copied to clipboard
class InvalidRequestException(errorCode: Int, errorMessage: String) : HealthDataException

An exception to indicate that the app has requested the specified operation with invalid conditions.

Link copied to clipboard
class PlatformInternalException @JvmOverloads constructor(errorCode: Int?, errorMessage: String, cause: Throwable? = null) : HealthDataException

An exception to indicate that the Samsung Health platform experienced an internal error that cannot be resolved by the app.

Link copied to clipboard
class ResolvablePlatformException(errorCode: Int?, errorMessage: String, val hasResolution: Boolean) : HealthDataException

An exception to indicate that the Samsung Health app is not ready to serve the specified operation.

Preferences Submitted

You have successfully updated your cookie preferences.