Package org.calypsonet.terminal.card
Class AbstractApduException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.calypsonet.terminal.card.AbstractApduException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CardBrokenCommunicationException
,ReaderBrokenCommunicationException
,UnexpectedStatusWordException
public class AbstractApduException extends java.lang.Exception
Generic exception carrying response data received from the card until a communication failure occurs or an unexpected APDU status word is received.- Since:
- 1.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractApduException(CardResponseApi cardResponseApi, boolean isCardResponseComplete, java.lang.String message)
Builds a new exception embedding card response data.AbstractApduException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CardResponseApi
getCardResponse()
Gets the response data received so far.
-
-
-
Constructor Detail
-
AbstractApduException
public AbstractApduException(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 originalCardRequestSpi
.message
- the message to identify the exception context- Since:
- 1.0.0
-
AbstractApduException
public AbstractApduException(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 originalCardRequestSpi
.message
- Message to identify the exception context.cause
- The cause- Since:
- 1.0.0
-
-
Method Detail
-
getCardResponse
public CardResponseApi getCardResponse()
Gets the response data received so far.- Returns:
- A not null reference.
- Since:
- 1.0.0
-
-