|
|||||||||||
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 java.lang.RuntimeException javacard.framework.CardRuntimeException
The CardRuntimeException
class
defines a field reason
and two accessor methods
getReason()
and setReason()
. The reason
field encapsulates exception cause identifier in Java Card.
All Java Card unchecked Exception classes should extend
CardRuntimeException
. This class also provides a resource-saving mechanism
(throwIt()
method) for using a JCRE owned instance of this class.
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 the JCRE owned instance of the CardRuntimeException class with the
specified reason. |
Methods inherited from class java.lang.Object |
equals |
Constructor Detail |
public CardRuntimeException(short reason)
throwIt()
method
to use the JCRE owned instance of this class.
reason
- the reason for the exceptionMethod Detail |
public short getReason()
public void setReason(short reason)
reason
- the reason for the exceptionpublic static void throwIt(short reason) throws CardRuntimeException
CardRuntimeException
class with the
specified reason.
JCRE owned instances of exception classes are temporary JCRE Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables or instance variables or array components. See Java Card Runtime Environment (JCRE) Specification, section 6.2.1 for details.
reason
- the reason for the exception
CardRuntimeException
- always.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |