Skip to content

Commit 6202794

Browse files
KochTobisven1103
andcommitted
rename exception
Co-authored-by: Sven F. <[email protected]>
1 parent e77ad68 commit 6202794

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/life/qbic/registration/openbis/OpenBisSearchImpl.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchCriteria.MatchClauseAttribute;
99
import ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchSubCriteria;
1010
import java.util.List;
11-
import life.qbic.registration.openbis.exceptions.fail.ToManyMeasurementsException;
11+
import life.qbic.registration.openbis.exceptions.fail.TooManyMeasurementsException;
1212
import life.qbic.registration.openbis.exceptions.retry.NoMeasurementsFoundException;
1313

1414
/**
@@ -40,7 +40,7 @@ private static ISampleImmutable findMeasurementSample(String measurementId,
4040
throw new NoMeasurementsFoundException("Measurement '" + measurementId + "' not found");
4141
}
4242
if (immutableSamples.size() > 1) {
43-
throw new ToManyMeasurementsException(
43+
throw new TooManyMeasurementsException(
4444
"Multiple measurement with id '" + measurementId + "' found");
4545
}
4646
return immutableSamples.get(0);

src/main/java/life/qbic/registration/openbis/exceptions/fail/ToManyMeasurementsException.java renamed to src/main/java/life/qbic/registration/openbis/exceptions/fail/TooManyMeasurementsException.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
/**
44
* Thrown when multiple measurements exist where only one is expected.
55
*/
6-
public class ToManyMeasurementsException extends RuntimeException {
7-
public ToManyMeasurementsException(String message) {
6+
public class TooManyMeasurementsException extends RuntimeException {
7+
public TooManyMeasurementsException(String message) {
88
super(message);
99
}
1010
}

0 commit comments

Comments
 (0)