Class UnexpectedStatusWordException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UnexpectedStatusWordException
    extends AbstractApduException
    Exception carrying response data received from the card until an unexpected APDU status word is received.
    Since:
    1.0.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      UnexpectedStatusWordException​(CardResponseApi cardResponseApi, boolean isCardResponseComplete, java.lang.String message)
      Builds a new exception embedding card response data.
      UnexpectedStatusWordException​(CardResponseApi cardResponseApi, boolean isCardResponseComplete, java.lang.String message, java.lang.Throwable cause)
      Builds a new exception embedding card response data with the originating exception.
    • Method Summary

      • 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

      • UnexpectedStatusWordException

        public UnexpectedStatusWordException​(CardResponseApi cardResponseApi,
                                             boolean isCardResponseComplete,
                                             java.lang.String message)
        Builds a new exception embedding card response data.
        Parameters:
        cardResponseApi - The card responses received so far.
        isCardResponseComplete - True if the number responses equals the number of requests present in the original CardRequestSpi.
        message - Message to identify the exception context.
        Since:
        1.0.0
      • UnexpectedStatusWordException

        public UnexpectedStatusWordException​(CardResponseApi cardResponseApi,
                                             boolean isCardResponseComplete,
                                             java.lang.String message,
                                             java.lang.Throwable cause)
        Builds a new exception embedding card response data with the originating exception.
        Parameters:
        cardResponseApi - The card responses received so far.
        isCardResponseComplete - True if the number responses equals the number of requests present in the original CardRequestSpi.
        message - Message to identify the exception context.
        cause - The cause
        Since:
        1.0.0