Package uicc.usim.suci
Class SUCIException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javacard.framework.CardRuntimeException
uicc.usim.suci.SUCIException
- All Implemented Interfaces:
Serializable
public class SUCIException
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 (= 2) is used to indicate that the there is already an instance of aSUCICalculatorobject registered in the USIM application.static final shortThis reason code (= 1) is used to indicate that the there is no USIM.static final shortThis reason code (= 3) is used to indicate that the provided objectSUCICalculatoris not the one already registered object in the USIM application.static final shortThis reason code (= 4) is used to indicate that the provided object doesn't implement the expected interface.static final shortThis reason code (= 5) is used to indicate that the provided object to be registered is not on the same security domain of the targeted USIM application. -
Constructor Summary
ConstructorsConstructorDescriptionSUCIException(short reason) Construct aSUCIExceptioninstance with the specified reason. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidthrowIt(short reason) Throws the JCRE instance of theSUCIExceptionclass 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
-
NO_USIM
public static final short NO_USIMThis reason code (= 1) is used to indicate that the there is no USIM.- See Also:
-
ALREADY_REGISTERED
public static final short ALREADY_REGISTEREDThis reason code (= 2) is used to indicate that the there is already an instance of aSUCICalculatorobject registered in the USIM application.- See Also:
-
NOT_REGISTERED
public static final short NOT_REGISTEREDThis reason code (= 3) is used to indicate that the provided objectSUCICalculatoris not the one already registered object in the USIM application.- See Also:
-
WRONG_INTERFACE
public static final short WRONG_INTERFACEThis reason code (= 4) is used to indicate that the provided object doesn't implement the expected interface.- See Also:
-
WRONG_OWNERSHIP
public static final short WRONG_OWNERSHIPThis reason code (= 5) is used to indicate that the provided object to be registered is not on the same security domain of the targeted USIM application.- See Also:
-
-
Constructor Details
-
SUCIException
public SUCIException(short reason) Construct aSUCIExceptioninstance 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 theSUCIExceptionclass with the specified reason.- Parameters:
reason- the reason for the exception.- Throws:
SUCIException- always
-