Class CardRuntimeExceptionSubclass
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javacard.framework.CardRuntimeException
-
- com.sun.javacard.javax.smartcard.rmiclient.CardRuntimeExceptionSubclass
-
- All Implemented Interfaces:
java.io.Serializable
public class CardRuntimeExceptionSubclass extends CardRuntimeException
This exception class represents a subclass ofCardRuntimeException
on the card. TheCardRuntimeException
class on the card defines a fieldreason
and two accessor methodsgetReason()
andsetReason()
. Thereason
field encapsulates exception cause identifier in the Java Card API. All Java Card API unchecked Exception classes on the card should extendCardRuntimeException
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CardRuntimeExceptionSubclass(java.lang.String msg, short reason)
Construct a CardRuntimeExceptionSubclass instance with the specified reason and the specified error message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
Returns the error message string of this throwable object.-
Methods inherited from class javacard.framework.CardRuntimeException
getReason, setReason, throwIt
-
-
-
-
Constructor Detail
-
CardRuntimeExceptionSubclass
public CardRuntimeExceptionSubclass(java.lang.String msg, short reason)
Construct a CardRuntimeExceptionSubclass instance with the specified reason and the specified error message.- Parameters:
msg
- the associated message stringreason
- the reason for the exception
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Returns the error message string of this throwable object.- Overrides:
getMessage
in classjava.lang.Throwable
- Returns:
- the error message string of this Throwable object if it was created with an error message string; or null if it was created with no error message.
-
-