import mircoders.entity.EntityImages;
import java.io.*;
+import java.sql.SQLException;
/**
* This class handles saving, fetching creating representations
*
* @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 $
*/
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);