Package uicc.suspendresume
Class SuspendException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javacard.framework.CardRuntimeException
-
- uicc.suspendresume.SuspendException
-
- All Implemented Interfaces:
java.io.Serializable
public class SuspendException extends javacard.framework.CardRuntimeExceptionThis class extends theThrowableclass and allows the classes of this package to throw specific exceptions in case of problems.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static shortUNEXPECTED_COMPAREThis reason code (= 2) is used to indicate that the compare operation is not recognized because the value is not defined inSuspendConstants.static shortUNEXPECTED_OVERFLOWThis reason code (= 3) is used to indicate that the value in seconds is above the maximum value allowed (221183999 or 0x0D2EFFFF).static shortUNEXPECTED_TIME_UNITThis reason code (= 1) is used to indicate that the time unit format is not recognized because the value is not defined inSuspendConstants.
-
Constructor Summary
Constructors Constructor Description SuspendException(short reason)Construct aSuspendExceptioninstance with the specified reason.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidthrowIt(short reason)Throws the JCRE instance of theSuspendExceptionclass with the specified reason.
-
-
-
Field Detail
-
UNEXPECTED_TIME_UNIT
public static final short UNEXPECTED_TIME_UNIT
This reason code (= 1) is used to indicate that the time unit format is not recognized because the value is not defined inSuspendConstants.- See Also:
- Constant Field Values
-
UNEXPECTED_COMPARE
public static final short UNEXPECTED_COMPARE
This reason code (= 2) is used to indicate that the compare operation is not recognized because the value is not defined inSuspendConstants.- See Also:
- Constant Field Values
-
UNEXPECTED_OVERFLOW
public static final short UNEXPECTED_OVERFLOW
This reason code (= 3) is used to indicate that the value in seconds is above the maximum value allowed (221183999 or 0x0D2EFFFF).- See Also:
- Constant Field Values
-
-
Method Detail
-
throwIt
public static void throwIt(short reason) throws SuspendExceptionThrows the JCRE instance of theSuspendExceptionclass with the specified reason.- Parameters:
reason- the reason for the exception.- Throws:
SuspendException- always
-
-