|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javacard.framework.CardRuntimeException
public class CardRuntimeException
The CardRuntimeException class
defines a field reason and two accessor methods
getReason() and setReason(). The reason
field encapsulates exception cause identifier in the Java Card API.
All Java Card API unchecked Exception classes should extend
CardRuntimeException.
| Constructor Summary | |
|---|---|
CardRuntimeException(short reason)
Construct a CardRuntimeException instance with the specified reason. |
|
| Method Summary | |
|---|---|
short |
getReason()
Get reason code |
void |
setReason(short reason)
Set reason code. |
static void |
throwIt(short reason)
Throw an instance of the CardRuntimeException class with the
specified reason. |
| 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 |
| Constructor Detail |
|---|
public CardRuntimeException(short reason)
reason - the reason for the exception| Method Detail |
|---|
public short getReason()
public void setReason(short reason)
reason - the reason for the exception
public static void throwIt(short reason)
throws CardRuntimeException
CardRuntimeException class with the
specified reason.
reason - the reason for the exception
CardRuntimeException - always.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||