From 723d5083668576e386d03cda72d2970508136187 Mon Sep 17 00:00:00 2001 From: sharonl <6546457+sharonluong@users.noreply.github.com> Date: Tue, 15 Oct 2024 12:19:32 -0400 Subject: [PATCH] BXC-4737 make exception more specific --- .../camel/thumbnails/ImportThumbnailRequestProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services-camel-app/src/main/java/edu/unc/lib/boxc/services/camel/thumbnails/ImportThumbnailRequestProcessor.java b/services-camel-app/src/main/java/edu/unc/lib/boxc/services/camel/thumbnails/ImportThumbnailRequestProcessor.java index 8f9c77ccf2..40e0b6b9ed 100644 --- a/services-camel-app/src/main/java/edu/unc/lib/boxc/services/camel/thumbnails/ImportThumbnailRequestProcessor.java +++ b/services-camel-app/src/main/java/edu/unc/lib/boxc/services/camel/thumbnails/ImportThumbnailRequestProcessor.java @@ -41,9 +41,9 @@ public void process(Exchange exchange) throws IOException { /** * Deletes the temporarily stored uploaded thumbnail file * @param exchange - * @throws Exception + * @throws IOException */ - public void cleanupTempThumbnailFile(Exchange exchange) throws Exception { + public void cleanupTempThumbnailFile(Exchange exchange) throws IOException { final Message in = exchange.getIn(); String tempValue = (String) in.getHeader(CdrBinaryPath); Path tempPath = Paths.get(tempValue);