Package uicc.usim.geolocation
Class GeoLocationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javacard.framework.CardRuntimeException
uicc.usim.geolocation.GeoLocationException
- All Implemented Interfaces:
Serializable
public class GeoLocationException
extends javacard.framework.CardRuntimeException
Geographical Location exception and its associated constants.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortThis reason code (= 2) is used to indicate that the geographical location is disabledstatic final shortThis reason code (= 5) is used to indicate that the information in theProactiveResponseHandleror in theEnvelopeHandleris not correct.static final shortThis reason code (= 1) is used to indicate that the parameters are incorrectstatic final shortThis reason code (= 6) is used to indicate that the aperformGeoLocationRequestis under processing (i.e.static final shortThis reason code (= 3) is used to indicate that the operation could not be processed -
Constructor Summary
ConstructorsConstructorDescriptionGeoLocationException(short reason) Construct a GeoLocationException instance with the specified reason. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidthrowIt(short reason) Throws the JCRE instance of theGeoLocationExceptionclass with the specified reason.Methods inherited from class javacard.framework.CardRuntimeException
getReason, setReasonMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INCORRECT_PARAMETERS
public static final short INCORRECT_PARAMETERSThis reason code (= 1) is used to indicate that the parameters are incorrect- See Also:
-
FUNCTION_DISABLED
public static final short FUNCTION_DISABLEDThis reason code (= 2) is used to indicate that the geographical location is disabled- See Also:
-
UNABLE_TO_PROCESS_COMMAND
public static final short UNABLE_TO_PROCESS_COMMANDThis reason code (= 3) is used to indicate that the operation could not be processed- See Also:
-
INCORRECT_INFORMATION
public static final short INCORRECT_INFORMATIONThis reason code (= 5) is used to indicate that the information in theProactiveResponseHandleror in theEnvelopeHandleris not correct.- See Also:
-
LOCATION_REQUEST_PROCESSING
public static final short LOCATION_REQUEST_PROCESSINGThis reason code (= 6) is used to indicate that the aperformGeoLocationRequestis under processing (i.e. after the sent of a location request and before receiving the "Geographical Location Reporting" ENVELOPE command).- See Also:
-
-
Constructor Details
-
GeoLocationException
public GeoLocationException(short reason) Construct a GeoLocationException instance with the specified reason. To conserve on resources usethrowIt()method to re-use the JCRE instance of this class.- Parameters:
reason- the reason for the exception
-
-
Method Details
-
throwIt
Throws the JCRE instance of theGeoLocationExceptionclass with the specified reason.- Parameters:
reason- the reason for the exception.- Throws:
GeoLocationException- always
-