Project

General

Profile

« Previous | Next » 

Revision a63beab2

Added by Patrick Plitzner almost 5 years 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