X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fnet%2Fsf%2Fopenrocket%2Fgui%2Fcomponents%2FURLLabel.java;fp=src%2Fnet%2Fsf%2Fopenrocket%2Fgui%2Fcomponents%2FURLLabel.java;h=5d3f42a32143e96dd2b32558bfe8f189591c3c9b;hb=c72e1c03cc0d15e11368707c38721d506ce356b9;hp=0be6b6d6947605e0274fcf3fcd717f0401b3b0f3;hpb=d23932f311312abb73801262a80ef2f6bc66818d;p=debian%2Fopenrocket diff --git a/src/net/sf/openrocket/gui/components/URLLabel.java b/src/net/sf/openrocket/gui/components/URLLabel.java index 0be6b6d6..5d3f42a3 100644 --- a/src/net/sf/openrocket/gui/components/URLLabel.java +++ b/src/net/sf/openrocket/gui/components/URLLabel.java @@ -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();