Package uicc.system

Class UICCSystemException

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static short TERMINAL_CAPABILITY_NOT_AVAILABLE
      This reason code (= 1) is used to indicate that the Terminal Capability command as not been issued.
    • Constructor Summary

      Constructors 
      Constructor Description
      UICCSystemException​(short reason)
      Construct a UICCSystemException instance with the specified reason.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void throwIt​(short reason)
      Throws the JCRE instance of the UICCSystemException class with the specified reason.
      • Methods inherited from class javacard.framework.CardRuntimeException

        getReason, setReason
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • TERMINAL_CAPABILITY_NOT_AVAILABLE

        public static final short TERMINAL_CAPABILITY_NOT_AVAILABLE
        This reason code (= 1) is used to indicate that the Terminal Capability command as not been issued.
        See Also:
        Constant Field Values
    • Constructor Detail

      • UICCSystemException

        public UICCSystemException​(short reason)
        Construct a UICCSystemException instance with the specified reason. To conserve on resources use throwIt() method to re-use the JCRE instance of this class.
        Parameters:
        reason - the reason for the exception
    • Method Detail

      • throwIt

        public static void throwIt​(short reason)
                            throws UICCSystemException
        Throws the JCRE instance of the UICCSystemException class with the specified reason.
        Parameters:
        reason - the reason for the exception.
        Throws:
        UICCSystemException - always