Package uicc.system
Class UICCSystemException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javacard.framework.CardRuntimeException
uicc.system.UICCSystemException
- All Implemented Interfaces:
Serializable
public class UICCSystemException
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 (= 1) is used to indicate that the Terminal Capability command as not been issued. -
Constructor Summary
ConstructorsConstructorDescriptionUICCSystemException(short reason) Construct aUICCSystemExceptioninstance with the specified reason. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidthrowIt(short reason) Throws the JCRE instance of theUICCSystemExceptionclass 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
-
TERMINAL_CAPABILITY_NOT_AVAILABLE
public static final short TERMINAL_CAPABILITY_NOT_AVAILABLEThis reason code (= 1) is used to indicate that the Terminal Capability command as not been issued.- See Also:
-
-
Constructor Details
-
UICCSystemException
public UICCSystemException(short reason) Construct aUICCSystemExceptioninstance 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 theUICCSystemExceptionclass with the specified reason.- Parameters:
reason- the reason for the exception.- Throws:
UICCSystemException- always
-