Package uicc.access.fileadministration
Class AdminException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javacard.framework.CardRuntimeException
uicc.access.fileadministration.AdminException
- All Implemented Interfaces:
Serializable
public class AdminException
extends javacard.framework.CardRuntimeException
The
AdminException class encapsulates specific exceptions which can
be thrown by the methods of an object, that implements an AdminFileView interface, in case of error.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortThis reason code (=3) is used to indicate that the conditions of use are not satisfied.static final shortThis reason code (=5) is used to indicate that the DF name already exists (only for creation of a DF and if a DF Name TLV is used)static final shortThis reason code (=2) is used to indicate that the file already exists.static final shortThis reason code (=1) is used to indicate that the parameters in the data field are incorrect.static final shortThis reason code (=4) is used to indicate that there is not enough memory -
Constructor Summary
ConstructorsConstructorDescriptionAdminException(short reason) Constructs a AdminException with the specified reason. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidthrowIt(short reason) Throws the JCRE instance of AdminException 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 in the data field are incorrect.- See Also:
-
FILE_ALREADY_EXISTS
public static final short FILE_ALREADY_EXISTSThis reason code (=2) is used to indicate that the file already exists.- See Also:
-
CONDITIONS_OF_USE_NOT_SATISFIED
public static final short CONDITIONS_OF_USE_NOT_SATISFIEDThis reason code (=3) is used to indicate that the conditions of use are not satisfied.- See Also:
-
NOT_ENOUGH_MEMORY_SPACE
public static final short NOT_ENOUGH_MEMORY_SPACEThis reason code (=4) is used to indicate that there is not enough memory- See Also:
-
DF_NAME_ALREADY_EXISTS
public static final short DF_NAME_ALREADY_EXISTSThis reason code (=5) is used to indicate that the DF name already exists (only for creation of a DF and if a DF Name TLV is used)- See Also:
-
-
Constructor Details
-
AdminException
public AdminException(short reason) Constructs a AdminException with the specified reason. To conserve on resources usethrowIt()to use the JCRE instance of this class.- Parameters:
reason- the reason for the exception
-
-
Method Details
-
throwIt
Throws the JCRE instance of AdminException with the specified reason.- Parameters:
reason- is the reason for the exception- Throws:
AdminException- always
-