Skip to content

Commit

Permalink
runtime related to throwable
Browse files Browse the repository at this point in the history
  • Loading branch information
straybirdzls committed Mar 28, 2018
1 parent 729d328 commit 9ef7ae3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -60,7 +60,7 @@ private Method getMainMethod(StackTraceElement element) {
if (Modifier.isStatic(method.getModifiers())) {
return method;
}
} catch (Exception ex) {
} catch (Throwable ex) {
// ignore
}
return null;
Expand Down
Expand Up @@ -54,7 +54,7 @@ public static void launch(String[] args) {
threadGroup.rethrowUncaughtException();
System.exit(0);
}
} catch (Exception e) {
} catch (Throwable e) {
throw new RuntimeException(e);
}
}
Expand Down
Expand Up @@ -66,7 +66,7 @@ public void run() {
"The specified entry class:%s doesn't contain an entry method:%s with appropriate signature.",
this.startClassName, this.startMethodName), ex);
thread.getThreadGroup().uncaughtException(thread, wrappedEx);
} catch (Exception ex) {
} catch (Throwable ex) {
thread.getThreadGroup().uncaughtException(thread, ex);
}
}
Expand Down

0 comments on commit 9ef7ae3

Please sign in to comment.