Package org.eclipse.keypop.storagecard
Class SCCardCommunicationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.keypop.reader.CardCommunicationException
org.eclipse.keypop.storagecard.SCCardCommunicationException
- All Implemented Interfaces:
Serializable,StorageCardException
public final class SCCardCommunicationException
extends org.eclipse.keypop.reader.CardCommunicationException
implements StorageCardException
Indicates an input/output error that occurred while communicating with the
StorageCard.
This exception reflects errors in the card communication process, such as transmission failures, card removal during processing, or any error preventing the expected response from the card.
It is also thrown when an automatic verification read, performed after a write operation on storage cards that do not provide reliable write acknowledgment, fails to confirm that the expected data was correctly stored.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSCCardCommunicationException(Integer blockAddress, String message) Creates a new exception indicating a card communication error during the execution of a storage card command.SCCardCommunicationException(Integer blockAddress, String message, Throwable cause) Creates a new exception indicating a card communication error during the execution of a storage card command, with an underlying cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the address of the block involved in the error, if applicable.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SCCardCommunicationException
Creates a new exception indicating a card communication error during the execution of a storage card command.- Parameters:
blockAddress- The block address involved in the error, ornullif not relevant.message- The message describing the exception context.- Since:
- 1.0.0
-
SCCardCommunicationException
Creates a new exception indicating a card communication error during the execution of a storage card command, with an underlying cause.- Parameters:
blockAddress- The block address involved in the error, ornullif not relevant.message- The message describing the exception context.cause- The underlying cause of the exception.- Since:
- 1.0.0
-
-
Method Details
-
getBlockAddress
Returns the address of the block involved in the error, if applicable.- Specified by:
getBlockAddressin interfaceStorageCardException- Returns:
- The block address that caused the error, or
nullif not relevant. - Since:
- 1.0.0
-