Class CardRuntimeException

    • Constructor Summary

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      short getReason()
      Get reason code
      void setReason​(short reason)
      Set reason code.
      static void throwIt​(short reason)
      Throw an instance of the CardRuntimeException class 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
    • Constructor Detail

      • CardRuntimeException

        public CardRuntimeException​(short reason)
        Construct a CardRuntimeException instance with the specified reason.
        Parameters:
        reason - the reason for the exception
    • Method Detail

      • getReason

        public short getReason()
        Get reason code
        Returns:
        the reason for the exception
      • setReason

        public void setReason​(short reason)
        Set reason code.
        Parameters:
        reason - the reason for the exception
      • throwIt

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