Add log for Classname of uncaught throwable

This commit is contained in:
Manfred Karrer 2016-06-04 15:07:14 +02:00
parent ba909647dc
commit 726f81c8fe

View File

@ -115,10 +115,11 @@ public class BitsquareApp extends Application {
log.error(throwable.getMessage());
} else {
log.error("Uncaught Exception from thread " + Thread.currentThread().getName());
log.error("Uncaught Exception throwableMessage= " + throwable.getMessage());
log.error("throwableMessage= " + throwable.getMessage());
log.error("throwableClass= " + throwable.getClass());
throwable.printStackTrace();
if (throwable instanceof ArrayIndexOutOfBoundsException) {
log.error("StackTrace:\n" + ExceptionUtils.getStackTrace(throwable));
log.error("Stack trace:\n" + ExceptionUtils.getStackTrace(throwable));
} else {
UserThread.execute(() -> showErrorPopup(throwable, false));
}