Skip to content

0.3.0

Choose a tag to compare

@jeanpierrefortune jeanpierrefortune released this 21 Jul 15:40

Added

  • Exception hierarchy: New base class StorageCardException with block address context support:
    • StorageCardException.getBlockAddress() method to retrieve the block address involved in errors.
  • Enhanced exception handling: All storage card exceptions now extend StorageCardException and include block address context:
    • CardIOException constructor now accepts blockAddress parameter.
    • ReaderIOException constructor now accepts blockAddress parameter.
    • UnexpectedCommandStatusException constructor now accepts blockAddress parameter.
  • Product type capability:
    New ProductType.hasWriteAcknowledgment() method to indicate whether a storage card provides a reliable acknowledgment after write operations.

Changed

  • Write operation behavior: API contract updated for prepareWriteBlocks() method regarding verification reads:
    • The API now specifies that implementations must handle verification reads transparently for storage cards without reliable write acknowledgment (e.g., SRT512/ST25).
    • For cards with reliable write acknowledgment, no additional reads are required by the implementation.
    • Applications can now rely on the API contract that data integrity is guaranteed without explicitly performing verification reads.

Removed

  • Deprecated exception: Removed InconsistentDataException class as it's no longer needed with the new exception hierarchy.