Package org.jmrtd
Class CardServiceProtocolException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.sf.scuba.smartcards.CardServiceException
-
- org.jmrtd.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 Summary
Constructors Constructor Description CardServiceProtocolException(String msg, int step)
Creates aCardServiceProtocolException
.CardServiceProtocolException(String msg, int step, int sw)
Creates aCardServiceProtocolException
with a specific status word.CardServiceProtocolException(String msg, int step, Throwable cause)
Creates aCardServiceProtocolException
.CardServiceProtocolException(String msg, int step, Throwable cause, int sw)
Creates aCardServiceProtocolException
with a specific status word.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
int
getStep()
Identifies the protocol step that failed.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CardServiceProtocolException
public CardServiceProtocolException(String msg, int step)
Creates aCardServiceProtocolException
.- Parameters:
msg
- a messagestep
- the protocol step that failed
-
CardServiceProtocolException
public CardServiceProtocolException(String msg, int step, Throwable cause)
Creates aCardServiceProtocolException
.- Parameters:
msg
- a messagestep
- the protocol step that failedcause
- the exception causing this exception
-
CardServiceProtocolException
public CardServiceProtocolException(String msg, int step, int sw)
Creates aCardServiceProtocolException
with a specific status word.- Parameters:
msg
- a messagestep
- the protocol step that failedsw
- the status word that caused this CardServiceException
-
CardServiceProtocolException
public CardServiceProtocolException(String msg, int step, Throwable cause, int sw)
Creates aCardServiceProtocolException
with a specific status word.- Parameters:
msg
- a messagestep
- the protocol step that failedcause
- the exception causing this exceptionsw
- 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 classnet.sf.scuba.smartcards.CardServiceException
-
-