public class GeoLocationException
extends javacard.framework.CardRuntimeException
Modifier and Type | Field and Description |
---|---|
static short |
FUNCTION_DISABLED
This reason code (= 2) is used to indicate that the geographical location is disabled
|
static short |
INCORRECT_INFORMATION
This reason code (= 5) is used to indicate that the information in the
ProactiveResponseHandler or in
the EnvelopeHandler is not correct. |
static short |
INCORRECT_PARAMETERS
This reason code (= 1) is used to indicate that the parameters are incorrect
|
static short |
LOCATION_REQUEST_PROCESSING
This reason code (= 6) is used to indicate that the a
performGeoLocationRequest is under processing
(i.e. |
static short |
UNABLE_TO_PROCESS_COMMAND
This reason code (= 3) is used to indicate that the operation could not be processed
|
Constructor and Description |
---|
GeoLocationException(short reason)
Construct a GeoLocationException instance with the specified reason.
|
Modifier and Type | Method and Description |
---|---|
static void |
throwIt(short reason)
Throws the JCRE instance of the
GeoLocationException class with
the specified reason. |
public static final short INCORRECT_PARAMETERS
public static final short FUNCTION_DISABLED
public static final short UNABLE_TO_PROCESS_COMMAND
public static final short INCORRECT_INFORMATION
ProactiveResponseHandler
or in
the EnvelopeHandler
is not correct.public static final short LOCATION_REQUEST_PROCESSING
performGeoLocationRequest
is under processing
(i.e. after the sent of a location request and before receiving the "Geographical Location Reporting" ENVELOPE command).public GeoLocationException(short reason)
throwIt()
method to re-use the
JCRE instance of this class.reason
- the reason for the exceptionpublic static void throwIt(short reason) throws GeoLocationException
GeoLocationException
class with
the specified reason.reason
- the reason for the exception.GeoLocationException
- always