optimization updates
[debian/openrocket] / src / net / sf / openrocket / gui / main / ExceptionHandler.java
index 15e0cbf06b4a926952edf7df0b5cbc959916bb0b..74f3091757ad4dc1cbcf6136228668d489ae7549 100644 (file)
@@ -113,7 +113,7 @@ public class ExceptionHandler implements Thread.UncaughtExceptionHandler {
         * @param message       the error message.
         * @param exception     the exception that occurred.
         */
-       public static void handleErrorCondition(String message, Exception exception) {
+       public static void handleErrorCondition(String message, Throwable exception) {
                log.error(1, message, exception);
                handleErrorCondition(new InternalException(message, exception));
        }
@@ -128,7 +128,7 @@ public class ExceptionHandler implements Thread.UncaughtExceptionHandler {
         * 
         * @param exception             the exception that occurred.
         */
-       public static void handleErrorCondition(final Exception exception) {
+       public static void handleErrorCondition(final Throwable exception) {
                try {
                        if (!(exception instanceof InternalException)) {
                                log.error(1, "Error occurred", exception);
@@ -186,7 +186,7 @@ public class ExceptionHandler implements Thread.UncaughtExceptionHandler {
                }
                
                // Unknown Error
-               if (!(e instanceof Exception)) {
+               if (!(e instanceof Exception) && !(e instanceof LinkageError)) {
                        log.info("Showing Error dialog");
                        JOptionPane.showMessageDialog(null,
                                        new Object[] {