Unknown

class Unknown(val message: String, val platformCode: String?, val cause: Throwable? = null) : PasskeyError

Any failure PassKi could not classify.

Constructors

Link copied to clipboard
constructor(message: String, platformCode: String?, cause: Throwable? = null)

Properties

Link copied to clipboard

What kind of failure this is, for deciding what to show. The set of categories is closed, so a when over it needs no else; a new error type always joins an existing category.

Link copied to clipboard

The original platform throwable, for logging and crash reporting. Not part of equals / hashCode because Throwables have no value equality.

Link copied to clipboard
open val checkId: String?

The catalog check that covers this error (e.g. AND-03, IOS-02, CFG-01), or null when no setup check does. Run PasskeyDoctor or ./gradlew passkiCheck to see which part of that check fails.

Link copied to clipboard

The docs page for checkId: what the check means and how to fix it. Null when checkId is null.

Link copied to clipboard
open val fixHint: String?

What a developer should change to fix this error, or null when it is not actionable.

Link copied to clipboard

True when the user ended the request or it was interrupted (Cancelled, Interrupted): show no error.

Link copied to clipboard
open override val message: String

Human-readable description, suitable for logs.

Link copied to clipboard

The raw platform error code or type name, if the platform provided one.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String