Changed Util.error(...) to throw new RuntimeException(...) to avoid the problem causing nightly builds to fail.
svn: r2736
This commit is contained in:
parent
e92253f531
commit
bb5082d9e7
|
@ -6,15 +6,18 @@ public abstract class World {
|
||||||
|
|
||||||
public void bigBang(int width, int height, double s) {
|
public void bigBang(int width, int height, double s) {
|
||||||
if (width <= 0)
|
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 "
|
"the first argument to be greather than 0, given "
|
||||||
+ width);
|
+ width);
|
||||||
if (height <= 0)
|
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 "
|
"the second argument to be greather than 0, given "
|
||||||
+ height);
|
+ height);
|
||||||
if (s <= 0)
|
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 "
|
"the third argument to be greather than 0, given "
|
||||||
+ s);
|
+ s);
|
||||||
theCanvas = new Canvas(width,height);
|
theCanvas = new Canvas(width,height);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user