Class Error

  • All Implemented Interfaces:

    
    public class Error
    
                        

    Base class for all Fingerprint SDK errors.

    Use a when expression 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)
        }
    }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getEventId() Server-assigned event ID.
      final String getDescription() Human-readable error description.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.