Skip to content

Commit 39e1178

Browse files
committed
Implementing reviewer's comments.
1 parent 458cc5e commit 39e1178

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/main/java/edu/ie3/datamodel/io/source/RawGridSource.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,10 @@ public RawGridElements getGridData(
158158

159159
if (!exceptions.isEmpty()) {
160160
throw new RawGridException(
161-
"Some exception(s) occurred while initializing raw grid.", exceptions);
161+
"Exception(s) occurred in "
162+
+ exceptions.size()
163+
+ " input files while initializing raw grid.",
164+
exceptions);
162165
} else {
163166
/* build and return the grid if it is not empty */
164167
// getOrThrow should not throw an exception in this context, because all exception are

src/main/java/edu/ie3/datamodel/io/source/SystemParticipantSource.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,10 @@ public SystemParticipants getSystemParticipants(
225225

226226
if (!exceptions.isEmpty()) {
227227
throw new SystemParticipantsException(
228-
"Some exception(s) occurred while initializing system participants.", exceptions);
228+
"Exception(s) occurred in "
229+
+ exceptions.size()
230+
+ " input files while initializing system participants.",
231+
exceptions);
229232
} else {
230233
// if everything is fine, return a system participants container
231234
// getOrThrow should not throw an exception in this context, because all exception are

src/test/groovy/edu/ie3/datamodel/io/source/csv/CsvSystemParticipantSourceTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class CsvSystemParticipantSourceTest extends Specification implements CsvTestDat
7676

7777
Exception ex = systemParticipants.exception.get()
7878
ex.class == SystemParticipantsException
79-
ex.message == "Some exception(s) occurred while initializing system participants.\n" +
79+
ex.message == "Exception(s) occurred in 10 input files while initializing system participants.\n" +
8080
" edu.ie3.datamodel.exceptions.SourceException: 1 exception(s) occurred within \"FixedFeedInInput\" data: \n" +
8181
" edu.ie3.datamodel.exceptions.FactoryException: edu.ie3.datamodel.exceptions.SourceException: Entity with uuid 4ca90220-74c2-4369-9afa-a18bf068840d was not provided. Caused by: edu.ie3.datamodel.exceptions.SourceException: Entity with uuid 4ca90220-74c2-4369-9afa-a18bf068840d was not provided.\n" +
8282
" edu.ie3.datamodel.exceptions.SourceException: 1 exception(s) occurred within \"PvInput\" data: \n" +

0 commit comments

Comments
 (0)