Skip to content

Commit

Permalink
Update exception error string to include < 0
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-allan committed Oct 1, 2024
1 parent 4313e95 commit cb1ca8c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,21 +326,21 @@ public void checkBounds(Integer x, Integer y, Integer z, Integer c,
throws DimensionsOutOfBoundsException {
if (x != null && (x > getSizeX() - 1 || x < 0)) {
throw new DimensionsOutOfBoundsException("X '" + x
+ "' greater than sizeX '" + getSizeX() + "'.");
+ "' greater than sizeX '" + getSizeX() + "' or < '0'.");
}
if (y != null && (y > getSizeY() - 1 || y < 0)) {
throw new DimensionsOutOfBoundsException("Y '" + y
+ "' greater than sizeY '" + getSizeY() + "'.");
+ "' greater than sizeY '" + getSizeY() + "' or < '0'.");
}

if (z != null && (z > getSizeZ() - 1 || z < 0)) {
throw new DimensionsOutOfBoundsException("Z '" + z
+ "' greater than sizeZ '" + getSizeZ() + "'.");
+ "' greater than sizeZ '" + getSizeZ() + "' or < '0'.");
}

if (c != null && (c > getSizeC() - 1 || c < 0)) {
throw new DimensionsOutOfBoundsException("C '" + c
+ "' greater than sizeC '" + getSizeC() + "'.");
+ "' greater than sizeC '" + getSizeC() + "' or < '0'.");
}

if (t != null && (t > getSizeT() - 1 || t < 0)) {
Expand Down

0 comments on commit cb1ca8c

Please sign in to comment.