Class CardExceptionSubclass

  • All Implemented Interfaces:
    java.io.Serializable

    public class CardExceptionSubclass
    extends CardException
    This exception class represents a subclass of CardException on the card. The CardException class on the card defines a field reason and two accessor methods getReason() and setReason(). The reason field encapsulates the exception cause identifier in the Java Card API All Java Card API checked Exception classes on the card should extend CardException.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CardExceptionSubclass​(java.lang.String msg, short reason)
      Construct a CardExceptionSubclass instance with the specified reason and the specified error message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Returns the error message string of this throwable object.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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

      • CardExceptionSubclass

        public CardExceptionSubclass​(java.lang.String msg,
                                     short reason)
        Construct a CardExceptionSubclass instance with the specified reason and the specified error message.
        Parameters:
        msg - the associated message string
        reason - the reason for the exception
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Returns the error message string of this throwable object.
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        the error message string of this Throwable object if it was created with an error message string; or null if it was created with no error message.