Class UnexpectedCommandStatusException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class UnexpectedCommandStatusException
    extends java.lang.RuntimeException
    Indicates that an unexpected command status was returned by the card or SAM.

    This can occur if the card or SAM is not Calypso compliant or if the card has refused the secure session closing.

    For this last case, this is usually due to an incorrect SAM signature, or that the secure session has been altered by other APDU commands that would have interfered with it.

    If a secure session was open, the card discarded all data by cancelling all updates except for PIN verification attempts.

    Since:
    0.1.0
    See Also:
    Serialized Form
    • 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

      • UnexpectedCommandStatusException

        public UnexpectedCommandStatusException​(java.lang.String message,
                                                java.lang.Throwable cause)
        Parameters:
        message - Message to identify the exception context.
        cause - The cause.
        Since:
        0.1.0