public class SUCIException
extends CardRuntimeException
Throwable
class and allows the classes of this package
to throw specific exceptions in case of problems.Modifier and Type | Field and Description |
---|---|
static short |
ALREADY_REGISTERED
This reason code (= 2) is used to indicate that the there is already an
instance of a
SUCICalculator object registered in the USIM application. |
static short |
NO_USIM
This reason code (= 1) is used to indicate that the there is no USIM.
|
static short |
NOT_REGISTERED
This reason code (= 3) is used to indicate that the provided object
SUCICalculator
is not the one already registered object in the USIM application. |
static short |
WRONG_INTERFACE
This reason code (= 4) is used to indicate that the provided object
doesn't implement the expected interface.
|
static short |
WRONG_OWNERSHIP
This 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 and Description |
---|
SUCIException(short reason)
Construct a
SUCIException instance with the specified
reason. |
Modifier and Type | Method and Description |
---|---|
static void |
throwIt(short reason)
Throws the JCRE instance of the
SUCIException class with
the specified reason. |
public static final short NO_USIM
public static final short ALREADY_REGISTERED
SUCICalculator
object registered in the USIM application.public static final short NOT_REGISTERED
SUCICalculator
is not the one already registered object in the USIM application.public static final short WRONG_INTERFACE
public static final short WRONG_OWNERSHIP
public SUCIException(short reason)
SUCIException
instance with the specified
reason. To conserve on resources use throwIt()
method to
re-use the JCRE instance of this class.reason
- the reason for the exceptionpublic static void throwIt(short reason) throws SUCIException
SUCIException
class with
the specified reason.reason
- the reason for the exception.SUCIException
- alwaysCopyright © 2019 ETSI All Rights Reserved.