Package uicc.toolkit
Class ToolkitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javacard.framework.CardRuntimeException
uicc.toolkit.ToolkitException
- All Implemented Interfaces:
Serializable
public class ToolkitException
extends javacard.framework.CardRuntimeException
This class extends the
Throwable class and allows the classes of this package
to throw specific exceptions in case of problems.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortThis reason code (=10) is used to indicate that the provided menu entry string is bigger than the allocated spacestatic final shortThis reason code (=14) is used to indicate that an input parameter of the method is not validstatic final shortThis reason code (=15) is used to indicate that the proactive command being sent is not allowed by the CAT Runtime Environment.static final shortThis reason code (= 7) is used to indicate that the maximum number of registered applet for this event is already reached (e.g Call Control)static final shortThis reason code (=13) is used to indicate that the registration to an indicated event can not be changed by the called method.static final shortThis reason code (= 6) is used to indicate that the event code is not supported by the CAT Runtime Environmentstatic final shortThis reason code (= 2) is used to indicate that the Handler is not available (e.g.static final shortThis reason code (= 1) is used to indicate that data are to large than the storage space available in the handler.static final shortThis reason code (=17) is used to indicate that the service identifier is not allocated to this applet.static final shortThis reason code (=12) is used to indicate that the indicated timer identifier is not allocated to this applet.static final shortThis reason code (= 4) is used to indicate that the requested menu entry is not defined for the corresponding applet.static final shortThis reason code (=16) is used to indicate that all the available services identifiers or the maximum number of services identifiers have been allocated to the appletstatic final shortThis reason code (=11) is used to indicate that all the available timers or the maximum number of timers have been allocated to the appletstatic final shortThis reason code (= 8) is used to indicate that either the offset, the length or both are out of current TLV boundariesstatic final shortThis reason code (= 5) is used to indicate an error in the applet registrystatic final shortThis reason code (=18) is used to indicate that there is no TAR defined for the applet instance.static final shortThis reason code (= 9) is used to indicate that the Terminal Profile data are not availablestatic final shortThis reason code (= 3) is used to indicate that the element is unavailable in the handler buffer. -
Constructor Summary
ConstructorsConstructorDescriptionToolkitException(short reason) Construct a ToolkitException instance with the specified reason. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidthrowIt(short reason) Throws the JCRE instance of theToolkitExceptionclass 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
-
HANDLER_OVERFLOW
public static final short HANDLER_OVERFLOWThis reason code (= 1) is used to indicate that data are to large than the storage space available in the handler.- See Also:
-
HANDLER_NOT_AVAILABLE
public static final short HANDLER_NOT_AVAILABLEThis reason code (= 2) is used to indicate that the Handler is not available (e.g. busy).- See Also:
-
UNAVAILABLE_ELEMENT
public static final short UNAVAILABLE_ELEMENTThis reason code (= 3) is used to indicate that the element is unavailable in the handler buffer.- See Also:
-
MENU_ENTRY_NOT_FOUND
public static final short MENU_ENTRY_NOT_FOUNDThis reason code (= 4) is used to indicate that the requested menu entry is not defined for the corresponding applet.- See Also:
-
REGISTRY_ERROR
public static final short REGISTRY_ERRORThis reason code (= 5) is used to indicate an error in the applet registry- See Also:
-
EVENT_NOT_SUPPORTED
public static final short EVENT_NOT_SUPPORTEDThis reason code (= 6) is used to indicate that the event code is not supported by the CAT Runtime Environment- See Also:
-
EVENT_ALREADY_REGISTERED
public static final short EVENT_ALREADY_REGISTEREDThis reason code (= 7) is used to indicate that the maximum number of registered applet for this event is already reached (e.g Call Control)- See Also:
-
OUT_OF_TLV_BOUNDARIES
public static final short OUT_OF_TLV_BOUNDARIESThis reason code (= 8) is used to indicate that either the offset, the length or both are out of current TLV boundaries- See Also:
-
TERMINAL_PROFILE_NOT_AVAILABLE
public static final short TERMINAL_PROFILE_NOT_AVAILABLEThis reason code (= 9) is used to indicate that the Terminal Profile data are not available- See Also:
-
ALLOWED_LENGTH_EXCEEDED
public static final short ALLOWED_LENGTH_EXCEEDEDThis reason code (=10) is used to indicate that the provided menu entry string is bigger than the allocated space- See Also:
-
NO_TIMER_AVAILABLE
public static final short NO_TIMER_AVAILABLEThis reason code (=11) is used to indicate that all the available timers or the maximum number of timers have been allocated to the applet- See Also:
-
INVALID_TIMER_ID
public static final short INVALID_TIMER_IDThis reason code (=12) is used to indicate that the indicated timer identifier is not allocated to this applet.- See Also:
-
EVENT_NOT_ALLOWED
public static final short EVENT_NOT_ALLOWEDThis reason code (=13) is used to indicate that the registration to an indicated event can not be changed by the called method.- See Also:
-
BAD_INPUT_PARAMETER
public static final short BAD_INPUT_PARAMETERThis reason code (=14) is used to indicate that an input parameter of the method is not valid- See Also:
-
COMMAND_NOT_ALLOWED
public static final short COMMAND_NOT_ALLOWEDThis reason code (=15) is used to indicate that the proactive command being sent is not allowed by the CAT Runtime Environment.- See Also:
-
NO_SERVICE_ID_AVAILABLE
public static final short NO_SERVICE_ID_AVAILABLEThis reason code (=16) is used to indicate that all the available services identifiers or the maximum number of services identifiers have been allocated to the applet- See Also:
-
INVALID_SERVICE_ID
public static final short INVALID_SERVICE_IDThis reason code (=17) is used to indicate that the service identifier is not allocated to this applet.- See Also:
-
TAR_NOT_DEFINED
public static final short TAR_NOT_DEFINEDThis reason code (=18) is used to indicate that there is no TAR defined for the applet instance.- See Also:
-
-
Constructor Details
-
ToolkitException
public ToolkitException(short reason) Construct a ToolkitException 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 theToolkitExceptionclass with the specified reason.- Parameters:
reason- the reason for the exception.- Throws:
ToolkitException- always
-