Package com.fingerprint.android
Class Error
-
- All Implemented Interfaces:
public class ErrorBase class for all Fingerprint SDK errors.
Use a
whenexpression on the concrete subtype to handle specific failure modes:errorListener = { error -> when (error) { is ApiKeyNotFound -> handleInvalidKey() is NetworkError -> showRetry() is ClientTimeout -> showTimeout() else -> logUnknown(error.eventId, error.description) } }
-
-
Field Summary
Fields Modifier and Type Field Description private final StringeventIdprivate final Stringdescription
-
Method Summary
Modifier and Type Method Description final StringgetEventId()Server-assigned event ID. final StringgetDescription()Human-readable error description. -
-
Method Detail
-
getEventId
final String getEventId()
Server-assigned event ID. Use it on the Fingerprint dashboard or Server API to query all signals and smart signals associated with this request. May be
"Unknown"for client-side errors that never reached the server.
-
getDescription
final String getDescription()
Human-readable error description.
-
-
-
-