public class CardRuntimeException
extends java.lang.RuntimeException
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 and Description |
---|
CardRuntimeException(short reason)
Constructs a
CardRuntimeException instance with
the specified reason. |
Modifier and Type | Method and Description |
---|---|
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. |
public CardRuntimeException(short reason)
CardRuntimeException
instance with
the specified reason.reason
- the reason for the exceptionpublic short getReason()
setReason(short)
public void setReason(short reason)
reason
- the reason for the exceptiongetReason()
public static void throwIt(short reason) throws CardRuntimeException
CardRuntimeException
class with the specified reason.reason
- the reason for the exceptionCardRuntimeException
- alwaysCopyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.