| |
|
| java.lang.Object java.lang.Throwable java.lang.Exception javacard.framework.CardException
All known Subclasses: javacard.framework.UserException,
CardException | public class CardException extends Exception (Code) | | 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 | |
public | CardException(short reason) Constructs a CardException instance with the
specified reason. |
Method Summary | |
public short | getReason() Gets the reason code. | public void | setReason(short reason) Sets the reason code. | public static void | throwIt(short reason) Throws an instance of CardException class with the
specified reason. |
CardException | public CardException(short reason)(Code) | | Constructs a CardException instance with the
specified reason.
Parameters: reason - the reason for the exception |
setReason | public void setReason(short reason)(Code) | | Sets the reason code.
Parameters: reason - the reason for the exception See Also: CardException.getReason |
throwIt | public static void throwIt(short reason) throws CardException(Code) | | Throws an instance of CardException class with the
specified reason.
Parameters: reason - the reason for the exception exception: CardException - always |
|
|
|