Class UnexpectedCommandStatusException

All Implemented Interfaces:
Serializable

public final class UnexpectedCommandStatusException extends 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 Details

    • UnexpectedCommandStatusException

      public UnexpectedCommandStatusException(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.
      Parameters:
      blockAddress - The block address involved in the error, or null if not relevant.
      message - The message describing the exception context.
      cause - The underlying cause of the exception.
      Since:
      1.0.0