|
Nokia Extensions for JSR-257 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception javax.microedition.contactless.ContactlessException com.nokia.nfc.nxp.mfstd.MFStandardException
public class MFStandardException
Thrown to indicate an error specific to the Mifare Standard Card communication, i.e. if authentication fails or if the methods conditions are not met.
Field Summary | |
---|---|
static int |
ERROR_AUTH
Indicates that an authentication error occurred. |
static int |
ERROR_CONDITIONS
Indicates that the methods conditions were not met. |
static int |
ERROR_GENERIC
Indicates a generic error. |
static int |
ERROR_PROTECTED
Indicates that the write operation failed because the data area is write protected. |
Constructor Summary | |
---|---|
MFStandardException(int reason)
Constructs a new MFStandardException object. |
|
MFStandardException(int reason,
java.lang.String message)
Constructs a new MFStandardException object. |
Method Summary | |
---|---|
int |
getReason()
Returns the reason for the communication error. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ERROR_GENERIC
public static final int ERROR_AUTH
public static final int ERROR_CONDITIONS
public static final int ERROR_PROTECTED
Constructor Detail |
---|
public MFStandardException(int reason)
MFStandardException
object.
reason
- the reason of the error.
java.lang.IllegalArgumentException
- if the reason
value is not supported.public MFStandardException(int reason, java.lang.String message)
MFStandardException
object.
reason
- the reason of the error.message
- optional message.
java.lang.IllegalArgumentException
- if the reason
value is not supported.Method Detail |
---|
public int getReason()
|
Nokia Extensions for JSR-257 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |