result.onFailure { error, cause ->
when (error) {
is WearablesError -> handleSdkError(error)
is StreamError -> handleStreamError(error)
is PermissionError -> handlePermissionError(error)
}
Log.e(TAG, error.description, cause)
}
interface DatError
description
: String
[Get] |
A human-readable description of the error suitable for logging and debugging purposes.
Signature
abstract val description: String |
getLocalizedDescription
(
context
)
|
Returns a localized description of the error using Android string resources when available.
Signature
abstract fun getLocalizedDescription(context: Context?): String Parameters context: Context?
Optional Android context for accessing string resources. If null or if no localized string is available, returns the default DatError.description.
Returns String
The localized error description, or the default description if localization unavailable.
|