Revision 47028

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/export/spi/AbstractExportService.java
210 210
                featureCount++;
211 211

  
212 212
                if (this.getTaskStatus().isCancellationRequested()) {
213
                    LOG.info("Export cancelled by user.");
214
                    this.getTaskStatus().abort();
215
                    FeatureStore.cancelEditingQuietly(target);
216
                    fireCancelledListeners();
213 217
                    return;
214 218
                }
215 219
            }
......
218 222
            this.getTaskStatus().remove();
219 223
            fireFinishedListener();
220 224
            LOG.info("End export");
221
        } catch (Exception e) {
225
        } catch (Throwable e) {
222 226
            LOG.warn("Can't export", e);
223 227
            FeatureStore.cancelEditingQuietly(target);
224 228
            fireCancelledListeners();
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/export/ExportException.java
65 65
     * @param cause
66 66
     *            the original cause of the exception
67 67
     */
68
    public ExportException(Exception cause) {
68
    public ExportException(Throwable cause) {
69 69
        super(MESSAGE, cause, KEY, serialVersionUID);
70 70
    }
71 71

  
......
98 98
        super(message, cause, key, code);
99 99
    }
100 100

  
101
    public ExportException(Exception e, Feature feature) {
101
    public ExportException(Throwable e, Feature feature) {
102 102
        this(e);
103 103
        this.feature = feature;
104 104
    }

Also available in: Unified diff