Package org.jmrtd

Class CardServiceProtocolException

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    PACEException

    public class CardServiceProtocolException
    extends net.sf.scuba.smartcards.CardServiceException
    An exception to signal errors during execution of a protocol.
    Since:
    0.7.27
    Version:
    $Revision: $
    Author:
    The JMRTD team ([email protected])
    See Also:
    Serialized Form
    • Constructor Detail

      • CardServiceProtocolException

        public CardServiceProtocolException​(String msg,
                                            int step)
        Creates a CardServiceProtocolException.
        Parameters:
        msg - a message
        step - the protocol step that failed
      • CardServiceProtocolException

        public CardServiceProtocolException​(String msg,
                                            int step,
                                            Throwable cause)
        Creates a CardServiceProtocolException.
        Parameters:
        msg - a message
        step - the protocol step that failed
        cause - the exception causing this exception
      • CardServiceProtocolException

        public CardServiceProtocolException​(String msg,
                                            int step,
                                            int sw)
        Creates a CardServiceProtocolException with a specific status word.
        Parameters:
        msg - a message
        step - the protocol step that failed
        sw - the status word that caused this CardServiceException
      • CardServiceProtocolException

        public CardServiceProtocolException​(String msg,
                                            int step,
                                            Throwable cause,
                                            int sw)
        Creates a CardServiceProtocolException with a specific status word.
        Parameters:
        msg - a message
        step - the protocol step that failed
        cause - the exception causing this exception
        sw - the status word that caused this CardServiceException
    • Method Detail

      • getStep

        public int getStep()
        Identifies the protocol step that failed.
        Returns:
        the protocol step that failed
      • getMessage

        public String getMessage()
        Overrides:
        getMessage in class net.sf.scuba.smartcards.CardServiceException