Revision 43502 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFService.java

View differences:

ExporttoDBFService.java
48 48
    protected ExporttoDBFService(File dbfFile, FeatureStore featureStore,
49 49
        String encoding) {
50 50
        super(dbfFile, featureStore);
51
        if( dbfFile == null ) {
52
            throw new IllegalArgumentException("file can't be null.");
53
        }
54
        if( featureStore == null ) {
55
            throw new IllegalArgumentException("Store can't be null.");
56
        }
51 57
        this.encoding = encoding;
52 58
        try {
53 59
            this.open();
54 60
        } catch (ExporttoServiceException e) {
55
            ((SimpleTaskStatus) getTaskStatus()).message(e.getMessage());
61
            throw new RuntimeException("Can't prepare the export to dbf. file="+dbfFile.getAbsolutePath()+", store="+featureStore.getFullName()+".", e);
56 62
        }
57 63
    }
58 64

  

Also available in: Unified diff