Added additional information to the range check exception.

This commit is contained in:
Paul Speed 2015-12-05 04:16:56 -05:00
parent 14e84a4dd7
commit 84ccd71873

@ -51,7 +51,8 @@ public class DefaultImageRaster extends ImageRaster {
private void rangeCheck(int x, int y) {
if (x < 0 || y < 0 || x >= width || y >= height) {
throw new IllegalArgumentException("x and y must be inside the image dimensions");
throw new IllegalArgumentException("x and y must be inside the image dimensions:"
+ x + ", " + y + " in:" + width + ", " + height);
}
}