ref #8129 Handle all exceptions
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / media / ImageFileElement.java
index 3e49491cc77cce6e333103c14acd91ac1cf29a05..599eebd41a22ad884d3a97788d402c984e5558d9 100644 (file)
@@ -9,11 +9,9 @@
 
 package eu.etaxonomy.taxeditor.ui.section.media;
 
-import java.io.IOException;
 import java.net.URI;
 
 import org.apache.commons.io.FileUtils;
-import org.apache.http.HttpException;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.Status;
@@ -58,7 +56,7 @@ public class ImageFileElement extends MediaRepresentationPartElement<ImageFile>
                         disposeImage();
                         element_image = formFactory.createImageElement(parentFormElement, uri, style);
                         element_image.initImageUri(uri);
-                    } catch (IOException | HttpException e) {
+                    } catch (Exception e) {
                         handleException();
                     }
                     element_image.loadImage();
@@ -80,7 +78,7 @@ public class ImageFileElement extends MediaRepresentationPartElement<ImageFile>
                     StoreUtil.reflowParentScrolledForm(getLayoutComposite(), true);
                 });
             }
-            catch (IOException | HttpException e) {
+            catch (Exception e) {
                 handleException();
             }
             return Status.OK_STATUS;