Class TransactionException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static short BUFFER_FULL
      This reason code is used during a transaction to indicate that the commit buffer is full.
      static short IN_PROGRESS
      The beginTransaction method is using this reason code to indicate a transaction is already in progress.
      static short INTERNAL_FAILURE
      This reason code is used during a transaction to indicate an internal Java Card runtime environment problem (fatal error).
      static short NOT_IN_PROGRESS
      The abortTransaction and commitTransaction methods are using this reason code when a transaction is not in progress.
    • Constructor Summary

      Constructors 
      Constructor Description
      TransactionException​(short reason)
      Constructs a TransactionException with the specified reason.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void throwIt​(short reason)
      Throws an instance of TransactionException with the specified reason.
      • 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

      • IN_PROGRESS

        public static final short IN_PROGRESS
        The beginTransaction method is using this reason code to indicate a transaction is already in progress.
        See Also:
        Constant Field Values
      • NOT_IN_PROGRESS

        public static final short NOT_IN_PROGRESS
        The abortTransaction and commitTransaction methods are using this reason code when a transaction is not in progress.
        See Also:
        Constant Field Values
      • BUFFER_FULL

        public static final short BUFFER_FULL
        This reason code is used during a transaction to indicate that the commit buffer is full.
        See Also:
        Constant Field Values
      • INTERNAL_FAILURE

        public static final short INTERNAL_FAILURE
        This reason code is used during a transaction to indicate an internal Java Card runtime environment problem (fatal error).
        See Also:
        Constant Field Values
    • Constructor Detail

      • TransactionException

        public TransactionException​(short reason)
        Constructs a TransactionException with the specified reason.
    • Method Detail

      • throwIt

        public static void throwIt​(short reason)
        Throws an instance of TransactionException with the specified reason.
        Throws:
        TransactionException - always.