Skip to content
Snippets Groups Projects
Commit 2547e914 authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

- fix: disabled catches, Rosetta has to handle exceptions (based on...

- fix: disabled catches, Rosetta has to handle exceptions (based on https://github.com/ExLibrisGroup/Rosetta.CustomNFSStoragePlugin)
parent 2592bd18
No related branches found
No related tags found
No related merge requests found
......@@ -117,15 +117,15 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
}
}
}
catch (IOException e) {
log.error("SLUBStoragePlugin.checkFixity(), I/O error, " + e.getMessage());
}
catch (NoSuchAlgorithmException e) {
log.error( "SLUBStoragePlugin.checkFixity(), missed Algorithm, " + e.getMessage());
}
catch (Exception e) {
log.error( "SLUBStoragePlugin.checkFixity(), unknown problem, " + e.getMessage());
}
// catch (IOException e) {
// log.error("SLUBStoragePlugin.checkFixity(), I/O error, " + e.getMessage());
// }
// catch (NoSuchAlgorithmException e) {
// log.error( "SLUBStoragePlugin.checkFixity(), missed Algorithm, " + e.getMessage());
// }
// catch (Exception e) {
// log.error( "SLUBStoragePlugin.checkFixity(), unknown problem, " + e.getMessage());
// }
finally
{
log.info("SLUBStoragePlugin.checkFixity() finally called");
......@@ -247,12 +247,12 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
file.readFully(bytes, 0, (int)(end - start + 1L));
}
catch (FileNotFoundException e) {
log.error("SLUBStoragePlugin.retrieveEntitybyRange(), file not found, " + e.getMessage());
}
catch (Exception e) {
log.error("SLUBStoragePlugin.retrieveEntityByRange(), I/O error, " + e.getMessage());
}
// catch (FileNotFoundException e) {
// log.error("SLUBStoragePlugin.retrieveEntitybyRange(), file not found, " + e.getMessage());
// }
// catch (Exception e) {
// log.error("SLUBStoragePlugin.retrieveEntityByRange(), I/O error, " + e.getMessage());
// }
finally
{
log.info("SLUBStoragePlugin.retrieveEntityByRange() finally called");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment