Package uicc.connection
Class ConnectionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javacard.framework.CardRuntimeException
uicc.connection.ConnectionException
- All Implemented Interfaces:
Serializable
public class ConnectionException
extends javacard.framework.CardRuntimeException
Exception class for the
uicc.connection package.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortReason code to indicate that the connection has been refused by the remote entity: 7static final shortReason code to indicate that invalid header fields set by applicationstatic final shortReason code to indicate that the parameters are invalid: 8static final shortReason code to indicate that the state of a connection or of a link does not correspond the requested action: 2static final shortReason code to indicate that the requested operation is not allowed at this time: 6static final shortReason code to indicate that the requested action would cause access out of data: 5static final shortReason code to indicate that there are insufficient resources on the UICC or on the terminal (e.g.static final shortReason code to indicate that no SCP81 key could be found to establish the TLS session: 11static final shortReason code to indicate that no SCP82 key could be found to establish the DTLS session: 13static final shortReason code to indicate that the requested action was aborted because of a timeout: 3static final shortReason code to indicate that a proactive session is pendingstatic final shortReason code to indicate that the transport protocol type is not supported: 0static final shortReason code to indicate that the terminal does not support the required mechanisms to perform the action: 9static final shortReason code to indicate that the requested action was aborted by the user: 4 -
Constructor Summary
ConstructorsConstructorDescriptionConnectionException(short sReason) Construct a ConnectionException instance with the specified reason. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidthrowIt(short sReason) Throws the JCRE instance of theConnectionExceptionclass 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
-
TRANSPORT_PROTOCOL_NOT_SUPPORTED
public static final short TRANSPORT_PROTOCOL_NOT_SUPPORTEDReason code to indicate that the transport protocol type is not supported: 0- See Also:
-
TOOLKIT_RESOURCE_NOT_AVAILABLE
public static final short TOOLKIT_RESOURCE_NOT_AVAILABLEReason code to indicate that a proactive session is pending- See Also:
-
INVALID_STATE
public static final short INVALID_STATEReason code to indicate that the state of a connection or of a link does not correspond the requested action: 2- See Also:
-
TIME_OUT
public static final short TIME_OUTReason code to indicate that the requested action was aborted because of a timeout: 3- See Also:
-
USER_CANCELLATION
public static final short USER_CANCELLATIONReason code to indicate that the requested action was aborted by the user: 4- See Also:
-
OUT_OF_DATA_BOUNDARIES
public static final short OUT_OF_DATA_BOUNDARIESReason code to indicate that the requested action would cause access out of data: 5- See Also:
-
OPERATION_NOT_ALLOWED
public static final short OPERATION_NOT_ALLOWEDReason code to indicate that the requested operation is not allowed at this time: 6- See Also:
-
CONNECTION_REFUSED
public static final short CONNECTION_REFUSEDReason code to indicate that the connection has been refused by the remote entity: 7- See Also:
-
INVALID_PARAMETERS
public static final short INVALID_PARAMETERSReason code to indicate that the parameters are invalid: 8- See Also:
-
UNSUPPORTED_OPERATION
public static final short UNSUPPORTED_OPERATIONReason code to indicate that the terminal does not support the required mechanisms to perform the action: 9- See Also:
-
RESOURCE_NOT_AVAILABLE
public static final short RESOURCE_NOT_AVAILABLEReason code to indicate that there are insufficient resources on the UICC or on the terminal (e.g. timers:) 10- See Also:
-
SCP81_KEY_NOT_FOUND
public static final short SCP81_KEY_NOT_FOUNDReason code to indicate that no SCP81 key could be found to establish the TLS session: 11- See Also:
-
INVALID_HEADER_FIELD
public static final short INVALID_HEADER_FIELDReason code to indicate that invalid header fields set by application- See Also:
-
SCP82_KEY_NOT_FOUND
public static final short SCP82_KEY_NOT_FOUNDReason code to indicate that no SCP82 key could be found to establish the DTLS session: 13- See Also:
-
-
Constructor Details
-
ConnectionException
public ConnectionException(short sReason) Construct a ConnectionException instance with the specified reason. To conserve on resources usethrowIt()method to re-use the JCRE instance of this class.- Parameters:
sReason- for the exception
-
-
Method Details
-
throwIt
Throws the JCRE instance of theConnectionExceptionclass with the specified reason.- Parameters:
sReason- for the exception.- Throws:
ConnectionException
-