Updates for 0.9.5
[debian/openrocket] / src / net / sf / openrocket / gui / components / URLLabel.java
index 0be6b6d6947605e0274fcf3fcd717f0401b3b0f3..5d3f42a32143e96dd2b32558bfe8f189591c3c9b 100644 (file)
@@ -12,6 +12,8 @@ import java.net.URISyntaxException;
 import java.util.HashMap;
 import java.util.Map;
 
+import net.sf.openrocket.util.BugException;
+
 /**
  * A label of a URL that is clickable.  Clicking the URL will launch the URL in
  * the default browser if the Desktop class is supported.
@@ -58,7 +60,7 @@ public class URLLabel extends SelectableLabel {
                                        try {
                                                d.browse(new URI(url));
                                        } catch (URISyntaxException e1) {
-                                               throw new RuntimeException("BUG: Illegal URL: " + url, e1);
+                                               throw new BugException("BUG: Illegal URL: " + url, e1);
                                        } catch (IOException e1) {
                                                System.err.println("Unable to launch browser:");
                                                e1.printStackTrace();