Project

General

Profile

Revision a63beab2

IDa63beab2fd5ae16e99c903f92cca4a6b572a41f6
Parent 663f4308
Child d7f33c8d

Added by Patrick Plitzner over 1 year ago

ref #8129 Handle all exceptions

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/media/ImageFileElement.java
9 9

  
10 10
package eu.etaxonomy.taxeditor.ui.section.media;
11 11

  
12
import java.io.IOException;
13 12
import java.net.URI;
14 13

  
15 14
import org.apache.commons.io.FileUtils;
16
import org.apache.http.HttpException;
17 15
import org.eclipse.core.runtime.IProgressMonitor;
18 16
import org.eclipse.core.runtime.IStatus;
19 17
import org.eclipse.core.runtime.Status;
......
58 56
                        disposeImage();
59 57
                        element_image = formFactory.createImageElement(parentFormElement, uri, style);
60 58
                        element_image.initImageUri(uri);
61
                    } catch (IOException | HttpException e) {
59
                    } catch (Exception e) {
62 60
                        handleException();
63 61
                    }
64 62
                    element_image.loadImage();
......
80 78
                    StoreUtil.reflowParentScrolledForm(getLayoutComposite(), true);
81 79
                });
82 80
            }
83
            catch (IOException | HttpException e) {
81
            catch (Exception e) {
84 82
                handleException();
85 83
            }
86 84
            return Status.OK_STATUS;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)