*** empty log message ***
[mir.git] / source / mircoders / media / MediaHandlerImages.java
index 41bb435..0917c1a 100755 (executable)
@@ -43,6 +43,7 @@ import mir.util.FileRoutines;
 import mircoders.entity.EntityImages;
 
 import java.io.*;
+import java.sql.SQLException;
 
 /**
  * This class handles saving, fetching creating representations
@@ -58,7 +59,7 @@ import java.io.*;
  *
  * @see mir.media.MediaHandler
  * @author mh
- * @version $Id: MediaHandlerImages.java,v 1.23.2.9 2005/08/21 17:09:23 zapata Exp $
+ * @version $Id: MediaHandlerImages.java,v 1.23.2.10 2006/01/28 18:33:16 zapata Exp $
  */
 
 
@@ -99,7 +100,12 @@ public abstract class MediaHandlerImages extends AbstractMediaHandler implements
     try {
       ((EntityImages) ent).setImage(in, getType());
     }
-    catch (Throwable e) {
+    catch (IOException e) {
+      logger.error("MediaHandlerImages.store", e);
+
+      throw new MediaFailure("A problem has occurred processing the media file", e);
+    }
+    catch (SQLException e) {
       logger.error("MediaHandlerImages.store", e);
 
       throw new MediaFailure("A problem has occurred processing the media file", e);