Skip to content

Commit

Permalink
Merge pull request IQSS#4518 from IQSS/4473-thumbnails-exception-hand…
Browse files Browse the repository at this point in the history
…ling_2

Update ImageThumbConverter.java
  • Loading branch information
kcondon authored Mar 16, 2018
2 parents 285c20e + 9915442 commit 02be130
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private static boolean generatePDFThumbnail(StorageIO<DataFile> storageIO, int s
//inputStream = storageIO.getInputStream();
pdfFileChannel = storageIO.getReadChannel();
} catch (Exception ioex) {
logger.warning("caught IOException trying to open an input stream for " + storageIO.getDataFile().getStorageIdentifier());
logger.warning("caught Exception trying to open an input stream for " + storageIO.getDataFile().getStorageIdentifier());
return false;
}

Expand Down Expand Up @@ -407,7 +407,7 @@ private static boolean isThumbnailCached(StorageIO<DataFile> storageIO, int size
try {
cached = storageIO.isAuxObjectCached(THUMBNAIL_SUFFIX + size);
} catch (Exception ioex) {
logger.fine("caught IO exception while checking for a cached thumbnail (file " + storageIO.getDataFile().getStorageIdentifier() + ")");
logger.fine("caught Exception while checking for a cached thumbnail (file " + storageIO.getDataFile().getStorageIdentifier() + ")");
return false;
}

Expand Down Expand Up @@ -671,7 +671,7 @@ public static String rescaleImage(BufferedImage fullSizeImage, int width, int he
try {
rescaleImage(fullSizeImage, width, height, size, outputFileStream);
} catch (Exception ioex) {
logger.warning("caught IO exceptiopn trying to create rescaled image " + outputLocation);
logger.warning("caught Exceptiopn trying to create rescaled image " + outputLocation);
return null;
}

Expand Down

0 comments on commit 02be130

Please sign in to comment.