Class NfcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.codename1.nfc.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.-
Constructor Summary
ConstructorsConstructorDescriptionNfcException(NfcError error) NfcException(NfcError error, String message) NfcException(NfcError error, String message, Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
NfcException
-
NfcException
-
NfcException
-
-
Method Details
-
getError
Typed error code describing the failure. Nevernull.
-