AttestedSecureKeysException class abstract

Base type for all errors thrown by this library. Always an Exception; the underlying platform error code is preserved in code, and any raw native diagnostic payload (e.g. the native stack trace, or a security-level / alias hint) in details, so the app always has the full picture — nothing the native side reports is swallowed.

Implemented types

Constructors

AttestedSecureKeysException(String message, {String? code, Object? details})
Creates an exception with a human-readable message, platform code, and optional raw details (native diagnostic payload).
const

Properties

code String?
The originating platform error code, if any (see ErrorCodes).
final
details Object?
Raw native diagnostic payload, if any. Its shape depends on code and platform: a security-level name for HwKeyUnsupportedError, the alias for KeyNotFoundError / KeyInvalidatedError, and for an unexpected KeyOperationError the native stack-trace string on Android (the alias on iOS — Apple's APIs don't expose a stack here; the domain/code/description are in message instead). Read it for the full native context; prefer the typed fields (e.g. HwKeyUnsupportedError.bestAvailable) for control flow.
final
hashCode int
The hash code for this object.
no setterinherited
message String
A human-readable description. For unexpected failures this includes the originating native exception type and message, so it is safe to surface in diagnostics/logs.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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