public class NfcException

  1. Object
  2. Throwable
  3. Exception
  4. NfcException
Thrown via the failure path of an AsyncResource returned by Nfc when an NFC read, write, or HCE operation fails. getError() returns a typed NfcError so callers can react without string-matching the message.

Constructors

public NfcException(NfcError error)
public NfcException(NfcError error, String message)
public NfcException(NfcError error, String message, Throwable cause)

Methods

public NfcError getError()Typed error code describing the failure.

Inherited methods

Constructor details

NfcException

public NfcException(NfcError error)

NfcException

public NfcException(NfcError error, String message)

NfcException

public NfcException(NfcError error, String message, Throwable cause)

Method details

getError

public NfcError getError()
Typed error code describing the failure. Never null.