NfcError

Root of the errors of the connection to a chip: the platform's NFC link, not the chip protocol.

A platform transport reports these when it cannot send a command to the chip or get its answer.

May gain members in a later release: an exhaustive when over it then stops compiling until the new member is handled. An else branch keeps it compiling without handling the new member: that is your choice, and today the compiler warns that such an else is redundant.

Experimental: see ExperimentalTesseraChipApi.

Since

1.0.0

Inheritors

Properties

Link copied to clipboard
abstract val code: String

A stable, machine-readable name of this error, for logs, metrics and keys of your own texts: lower-case words joined by hyphens, with a dot before the reason when the error has one (for example access-denied.key-not-matched, tag-lost). A code never changes once released, and it never contains a value from the document or the chip.

Link copied to clipboard
abstract val description: String

English text for logs. It is not localized.

Link copied to clipboard
open val statusWord: Int?

The status word the chip answered with, when this error carries one (for example 0x6300 for a refused key), otherwise null. The same value as the statusWord of the subtypes that have one, so an app reads it without a cast.