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;
l = (SimulationListener)c.newInstance();
} catch (Exception e) {
throw new SimulationListenerException("Could not instantiate listener of " +
- "class: " + className);
+ "class: " + className, e);
}
simulator.addSimulationListener(l);
}
} catch (CloneNotSupportedException e) {
- throw new RuntimeException("Clone not supported, BUG", e);
+ throw new BugException("Clone not supported, BUG", e);
}
}