X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet%2Fsf%2Fopenrocket%2Fgui%2Fmain%2FExceptionHandler.java;h=74f3091757ad4dc1cbcf6136228668d489ae7549;hb=bc75b89ed43a676df56a654bfe5ad6f54cc83423;hp=a3d51de3a66131a04fa9a9a179895912f998f7a3;hpb=879b214e60c09d53b18f24116fbfae08fa10604c;p=debian%2Fopenrocket diff --git a/src/net/sf/openrocket/gui/main/ExceptionHandler.java b/src/net/sf/openrocket/gui/main/ExceptionHandler.java index a3d51de3..74f30917 100644 --- a/src/net/sf/openrocket/gui/main/ExceptionHandler.java +++ b/src/net/sf/openrocket/gui/main/ExceptionHandler.java @@ -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);