DataONEorg / hashstore-java

HashStore, a hash-based object store for DataONE data packages
Apache License 2.0
1 stars 0 forks source link

Specifically declare `NonMatchingChecksumException` for the HashStoreConverter's `convert` method #101

Closed doulikecookiedough closed 1 month ago

doulikecookiedough commented 1 month ago

The existing custom exception NonMatchingChecksumException extends the IllegalArgumentException class. Since this class extends a RunTimeException, it is not "necessary" to declare in the convert method in HashStoreConverter.

To assist the client with exception handling, declare that a NonMatchingChecksumException will be thrown in the convert method.

doulikecookiedough commented 1 month ago

This has been completed via Feature-101: 'NonMatchingChecksumException' Declaration