public class HCIException
extends javacard.framework.CardRuntimeException
HCIException class encapsulates specific exceptions allows
the classes of this package to throw specific exceptions in case of problems.| Modifier and Type | Field and Description |
|---|---|
static short |
HCI_ACCESS_NOT_GRANTED
The Applet is not granted access to this HCI resource
|
static short |
HCI_CONDITIONS_NOT_SATISFIED
Indicates that the conditions to register a specific event or to call a specific method are not fulfilled
|
static short |
HCI_CURRENTLY_DISABLED
The interface to the contactless frontend (CLF) is currently disabled
|
static short |
HCI_FRAGMENTED_MESSAGE_ONGOING
Indicates that an attempt is made to send an HCIMessage to the CLF while
receiving a fragmented HCIMessage is still ongoing
|
static short |
HCI_INVALID_LENGTH
Indicates that a parameter has not the correct length
|
static short |
HCI_LISTENER_ALREADY_REGISTERED
Indicates that an Applet instance has already registered a Listener of this type
|
static short |
HCI_NOT_AVAILABLE
The HCI protocol is not available.
|
static short |
HCI_RESOURCES_NOT_AVAILABLE
Indicates that the contactless framework has not enough resources to fulfill
the command
|
static short |
HCI_SERVICE_NOT_AVAILABLE
The requested Service (CardEmulation, ReaderMode, Connectivity) is not avilable
|
static short |
HCI_WRONG_EVENT_TYPE
Indicates that a wrong event type is activated for this Service
|
static short |
HCI_WRONG_LISTENER_TYPE
Indicates that a wrong Listener type is registered to a Service
|
| Constructor and Description |
|---|
HCIException(short reason)
Constructs a HCIException with the specified reason.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
throwIt(short reason)
Throws the JCRE owned instance of the
HCIException with the specified
reason code. |
public static final short HCI_NOT_AVAILABLE
public static final short HCI_ACCESS_NOT_GRANTED
public static final short HCI_SERVICE_NOT_AVAILABLE
public static final short HCI_CURRENTLY_DISABLED
public static final short HCI_WRONG_LISTENER_TYPE
public static final short HCI_LISTENER_ALREADY_REGISTERED
public static final short HCI_WRONG_EVENT_TYPE
public static final short HCI_FRAGMENTED_MESSAGE_ONGOING
public static final short HCI_RESOURCES_NOT_AVAILABLE
public static final short HCI_INVALID_LENGTH
public static final short HCI_CONDITIONS_NOT_SATISFIED
public HCIException(short reason)
throwIt() to use the JCRE instance of this class.reason - the reason for the exceptionpublic static void throwIt(short reason)
throws HCIException
HCIException with the specified
reason code.reason - the reason for the exception.HCIException - the JCRE owned instance of the HCIException