From bb5082d9e7c9efedd2ae3902c68601083ba42c64 Mon Sep 17 00:00:00 2001 From: Kathy Gray Date: Fri, 21 Apr 2006 21:46:16 +0000 Subject: [PATCH] Changed Util.error(...) to throw new RuntimeException(...) to avoid the problem causing nightly builds to fail. svn: r2736 --- collects/htdch/idraw/World.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/collects/htdch/idraw/World.java b/collects/htdch/idraw/World.java index fc4b2305a8..273951902c 100644 --- a/collects/htdch/idraw/World.java +++ b/collects/htdch/idraw/World.java @@ -6,15 +6,18 @@ public abstract class World { public void bigBang(int width, int height, double s) { if (width <= 0) - Util.error("The method bigBang(int,int,double) expects " + + throw new RuntimeException( + "The method bigBang(int,int,double) expects " + "the first argument to be greather than 0, given " + width); if (height <= 0) - Util.error("The method bigBang(int,int,double) expects " + + throw new RuntimeException( + "The method bigBang(int,int,double) expects " + "the second argument to be greather than 0, given " + height); if (s <= 0) - Util.error("The method bigBang(int,int,double) expects " + + throw new RuntimeException( + "The method bigBang(int,int,double) expects " + "the third argument to be greather than 0, given " + s); theCanvas = new Canvas(width,height);