Package org.eclipse.keypop.storagecard
Class SCInvalidCardResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.keypop.reader.selection.InvalidCardResponseException
org.eclipse.keypop.storagecard.SCInvalidCardResponseException
- All Implemented Interfaces:
Serializable,StorageCardException
public final class SCInvalidCardResponseException
extends org.eclipse.keypop.reader.selection.InvalidCardResponseException
implements StorageCardException
Indicates that a command returned an unexpected or invalid status while interacting with the
StorageCard.
This exception is typically thrown when the card responds with a status code that does not match the expected outcome of the executed command, suggesting that the operation could not be completed as intended (e.g., write or read command rejected by the card).
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSCInvalidCardResponseException(Integer blockAddress, String message) Creates a new exception indicating a card status code error during the execution of a storage card command.SCInvalidCardResponseException(Integer blockAddress, String message, Throwable cause) Creates a new exception indicating a card status code 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
-
SCInvalidCardResponseException
Creates a new exception indicating a card status code 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
-
SCInvalidCardResponseException
Creates a new exception indicating a card status code 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
-