Skip to content

Commit

Permalink
rename exception
Browse files Browse the repository at this point in the history
Co-authored-by: Sven F. <[email protected]>
  • Loading branch information
KochTobi and sven1103 committed May 24, 2024
1 parent e77ad68 commit 6202794
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchCriteria.MatchClauseAttribute;
import ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SearchSubCriteria;
import java.util.List;
import life.qbic.registration.openbis.exceptions.fail.ToManyMeasurementsException;
import life.qbic.registration.openbis.exceptions.fail.TooManyMeasurementsException;
import life.qbic.registration.openbis.exceptions.retry.NoMeasurementsFoundException;

/**
Expand Down Expand Up @@ -40,7 +40,7 @@ private static ISampleImmutable findMeasurementSample(String measurementId,
throw new NoMeasurementsFoundException("Measurement '" + measurementId + "' not found");
}
if (immutableSamples.size() > 1) {
throw new ToManyMeasurementsException(
throw new TooManyMeasurementsException(
"Multiple measurement with id '" + measurementId + "' found");
}
return immutableSamples.get(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* Thrown when multiple measurements exist where only one is expected.
*/
public class ToManyMeasurementsException extends RuntimeException {
public ToManyMeasurementsException(String message) {
public class TooManyMeasurementsException extends RuntimeException {
public TooManyMeasurementsException(String message) {
super(message);
}
}

0 comments on commit 6202794

Please sign in to comment.