Skip to content

Commit 5aed5e5

Browse files
author
Hugo Marcellin
committed
Transition business error to technical error
1 parent 70f128b commit 5aed5e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
and computation version containing merged PR: https://github.com/gridsuite/computation/pull/13
5656
-->
5757
<gridsuite-filter.version>1.12.0</gridsuite-filter.version>
58-
<gridsuite-computation.version>1.6.0-SNAPSHOT</gridsuite-computation.version>
58+
<gridsuite-computation.version>1.7.0-SNAPSHOT</gridsuite-computation.version>
5959
</properties>
6060

6161
<build>

src/main/java/org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
import java.io.ByteArrayOutputStream;
2828
import java.io.IOException;
2929
import java.io.OutputStream;
30+
import java.io.UncheckedIOException;
3031
import java.nio.charset.StandardCharsets;
3132
import java.text.NumberFormat;
3233
import java.util.*;
3334
import java.util.zip.ZipEntry;
3435
import java.util.zip.ZipOutputStream;
3536

36-
import static org.gridsuite.computation.ComputationBusinessErrorCode.FILE_EXPORT_ERROR;
3737
import static org.gridsuite.computation.ComputationBusinessErrorCode.INVALID_EXPORT_PARAMS;
3838
import static org.gridsuite.computation.ComputationBusinessErrorCode.RESULT_NOT_FOUND;
3939

@@ -194,7 +194,7 @@ public byte[] exportSensitivityResultsAsCsv(UUID resultUuid, SensitivityAnalysis
194194
csvWriter.close();
195195
return outputStream.toByteArray();
196196
} catch (IOException e) {
197-
throw new ComputationException(FILE_EXPORT_ERROR, e.getMessage());
197+
throw new UncheckedIOException("Error occured during data csv export", e);
198198
}
199199
}
200200

0 commit comments

Comments
 (0)