|
|||||||||
| 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 an exception cause identifier in Java Card. All Java Card unchecked exception classes should extend CardRuntimeException.
| Constructor Summary | ||
|---|---|---|
CardRuntimeException(short reason)
Constructs a CardRuntimeException 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 the CardRuntimeException 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 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
reason - Throws an instance of the CardRuntimeException class with the specified reason.
CardRuntimeException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal