import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import net.sf.openrocket.util.BugException;
import net.sf.openrocket.util.Coordinate;
import net.sf.openrocket.util.MathUtil;
avgTime *= time/(DIVISIONS+1);
if (Double.isNaN(avgTime))
- throw new RuntimeException("Calculated avg. time is NaN for motor "+this);
+ throw new BugException("Calculated avg. time is NaN for motor "+this);
}
return avgTime;
avgThrust /= points;
if (Double.isNaN(avgThrust))
- throw new RuntimeException("Calculated average thrust is NaN for motor "+this);
+ throw new BugException("Calculated average thrust is NaN for motor "+this);
}
return avgThrust;
}
}
if (Double.isNaN(totalImpulse))
- throw new RuntimeException("Calculated total impulse is NaN for motor "+this);
+ throw new BugException("Calculated total impulse is NaN for motor "+this);
}
return totalImpulse;
}