From 50b1cd699a8538ef61f436f200076adcdf7795f7 Mon Sep 17 00:00:00 2001 From: melvin Date: Wed, 3 Aug 2011 14:41:40 +0800 Subject: [PATCH] replaced Exception with IOException --- src/magic/ui/viewer/ImageViewer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/magic/ui/viewer/ImageViewer.java b/src/magic/ui/viewer/ImageViewer.java index 80872436f4..d7f26a39b1 100644 --- a/src/magic/ui/viewer/ImageViewer.java +++ b/src/magic/ui/viewer/ImageViewer.java @@ -8,6 +8,7 @@ import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.image.BufferedImage; import java.io.File; +import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.List; @@ -92,7 +93,7 @@ public class ImageViewer extends JPanel implements DelayedViewer { if (imageFile!=null) { readImage=ImageIO.read(imageFile); } - } catch (final Exception ex) { + } catch (final IOException ex) { System.err.println("WARNING. Unable to read from " + imageFile.getName()); }