|
BenQ Mobile |
||||||||||
| 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
|
+--javacard.framework.CardException
The CardException class
defines a field reason and two accessor methods
getReason() and setReason(). The reason
field encapsulates an exception cause identifier in Java Card.
All Java Card checked exception classes should extend
CardException.
| Constructor Summary | |
CardException(short reason)
Constructs a CardException instance with the
specified reason. |
|
| Method Summary | |
short |
getReason()
Gets the reason code. |
void |
setReason(short reason)
Sets the reason code. |
static void |
throwIt(short reason)
Throws an instance of CardException class with the
specified reason. |
| Methods inherited from class java.lang.Throwable |
getMessage, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CardException(short reason)
CardException instance with the
specified reason.
reason - the reason for the exception| Method Detail |
public short getReason()
setReason(short)public void setReason(short reason)
reason - the reason for the exceptiongetReason()
public static void throwIt(short reason)
throws CardException
CardException class with the
specified reason.
reason - the reason for the exception
CardException - always
|
BenQ Mobile |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner. All Rights Reserved. BenQ Corp. is a trademark licensee of Siemens AG. | For further information about Mobility Toolkit (MTK) visit our Developer Portal. |