Updates for 0.9.5
[debian/openrocket] / src / net / sf / openrocket / document / Simulation.java
index 5e8d8e9f960d5dff70c094116d7d759b6d0f324d..9867f2dd4c254e77f8f3630b90e619c6506ad68d 100644 (file)
@@ -18,6 +18,7 @@ import net.sf.openrocket.simulation.SimulationConditions;
 import net.sf.openrocket.simulation.SimulationListener;
 import net.sf.openrocket.simulation.exception.SimulationException;
 import net.sf.openrocket.simulation.exception.SimulationListenerException;
+import net.sf.openrocket.util.BugException;
 import net.sf.openrocket.util.ChangeSource;
 
 
@@ -250,7 +251,7 @@ public class Simulation implements ChangeSource, Cloneable {
                                l = (SimulationListener)c.newInstance();
                        } catch (Exception e) {
                                throw new SimulationListenerException("Could not instantiate listener of " +
-                                               "class: " + className);
+                                               "class: " + className, e);
                        }
                        simulator.addSimulationListener(l);
                }
@@ -347,7 +348,7 @@ public class Simulation implements ChangeSource, Cloneable {
 
                
                } catch (CloneNotSupportedException e) {
-                       throw new RuntimeException("Clone not supported, BUG", e);
+                       throw new BugException("Clone not supported, BUG", e);
                }
        }