Updates for 0.9.5
[debian/openrocket] / src / net / sf / openrocket / file / openrocket / OpenRocketSaver.java
index 6a13069b2fa1c85561ca82643159ff407b483da6..e0499395ea88f9f2f4257191d0d4adfe45a44820 100644 (file)
@@ -23,6 +23,7 @@ import net.sf.openrocket.simulation.FlightData;
 import net.sf.openrocket.simulation.FlightDataBranch;
 import net.sf.openrocket.simulation.FlightEvent;
 import net.sf.openrocket.simulation.SimulationConditions;
+import net.sf.openrocket.util.BugException;
 import net.sf.openrocket.util.MathUtil;
 import net.sf.openrocket.util.Pair;
 import net.sf.openrocket.util.Prefs;
@@ -213,7 +214,7 @@ public class OpenRocketSaver extends RocketSaver {
                Reflection.Method m = Reflection.findMethod(METHOD_PACKAGE, component, METHOD_SUFFIX,
                                "getElements", RocketComponent.class);
                if (m==null) {
-                       throw new RuntimeException("Unable to find saving class for component "+
+                       throw new BugException("Unable to find saving class for component "+
                                        component.getComponentName());
                }