bagit-java icon indicating copy to clipboard operation
bagit-java copied to clipboard

Return a list of exceptions encountered during verification

Open johnscancella opened this issue 7 years ago • 0 comments

Currently we throw an exception at the first problem we discover when verifying a bag: https://github.com/LibraryOfCongress/bagit-java/blob/0e4f80b969279c1a6e4f5037f3b9236bb6a253e3/src/main/java/gov/loc/repository/bagit/verify/BagVerifier.java#L151-L173

Instead we should return a list of errors in the case that there is more than one problem with a bag and let the user of this library decide how to deal with them.

johnscancella avatar Feb 28 '18 12:02 johnscancella