PasskeyLostException class

Thrown by PasskeyCustody.open when the passkey cannot open atSign's @keys: the ceremony returned no credential, the passkey's enrollment pointer does not exist, or the atServer refused PKAM for the key derived from it. The caller decides the screen; re-enrolling takes an OTP.

When cause is a PasskeyCeremonyException, the prompt failed, and the user may simply have cancelled it: WebAuthn reports a cancel and a missing passkey the same way. The library never deletes or clears anything, and ends no enrollment, after a failed or cancelled prompt, so an app should offer "Try again" (nothing changes; the user is prompted again) and "Reset" (a new enrollment, which needs an OTP and an approval, and ends the old one), and never reset on its own.

Inheritance

Constructors

PasskeyLostException(String atSign, String reason, {Object? cause})

Properties

atSign → String
final
cause → Object?
The failure that made the passkey count as lost, when there is one.
final
exceptionScenario ↔ ExceptionScenario?
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
intent ↔ Intent?
getter/setter pairinherited
message ↔ String
Represents error message that details the cause of the exception
getter/setter pairinherited
reason → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromException(AtException atException) → AtException
inherited
getTraceMessage() → String
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stack(AtChainedException atChainedException) → void
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited