Class SuspendException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javacard.framework.CardRuntimeException
uicc.suspendresume.SuspendException
All Implemented Interfaces:
Serializable

public class SuspendException 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 Details

    • UNEXPECTED_TIME_UNIT

      public static final short UNEXPECTED_TIME_UNIT
      This reason code (= 1) is used to indicate that the time unit format is not recognized because the value is not defined in SuspendConstants.
      See Also:
    • UNEXPECTED_COMPARE

      public static final short UNEXPECTED_COMPARE
      This reason code (= 2) is used to indicate that the compare operation is not recognized because the value is not defined in SuspendConstants.
      See Also:
    • UNEXPECTED_OVERFLOW

      public static final short UNEXPECTED_OVERFLOW
      This reason code (= 3) is used to indicate that the value in seconds is above the maximum value allowed (221183999 or 0x0D2EFFFF).
      See Also:
  • Constructor Details

    • SuspendException

      public SuspendException(short reason)
      Construct a SuspendException 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 Details

    • throwIt

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