do not throw unchecked exception when closing viewer

This commit is contained in:
adam-m 2012-12-04 13:46:56 -05:00
parent 55f1ddcd97
commit 9cf94d5525

View File

@ -110,8 +110,7 @@ public abstract class AbstractDataResultViewer extends JPanel implements
this.em.getRootContext().destroy();
em = null;
} catch (IOException ex) {
// TODO: What's the proper thing to do here? Should it log? Not throw runtime exception?
throw new RuntimeException("Error: can't clear the component of the Thumbnail Result Viewer.", ex);
logger.log(Level.WARNING, "Can't clear the component of the Thumbnail Result Viewer.", ex);
}
}