mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-02 19:56:23 -04:00
Add log for Classname of uncaught throwable
This commit is contained in:
parent
ba909647dc
commit
726f81c8fe
1 changed files with 3 additions and 2 deletions
|
@ -115,10 +115,11 @@ public class BitsquareApp extends Application {
|
||||||
log.error(throwable.getMessage());
|
log.error(throwable.getMessage());
|
||||||
} else {
|
} else {
|
||||||
log.error("Uncaught Exception from thread " + Thread.currentThread().getName());
|
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();
|
throwable.printStackTrace();
|
||||||
if (throwable instanceof ArrayIndexOutOfBoundsException) {
|
if (throwable instanceof ArrayIndexOutOfBoundsException) {
|
||||||
log.error("StackTrace:\n" + ExceptionUtils.getStackTrace(throwable));
|
log.error("Stack trace:\n" + ExceptionUtils.getStackTrace(throwable));
|
||||||
} else {
|
} else {
|
||||||
UserThread.execute(() -> showErrorPopup(throwable, false));
|
UserThread.execute(() -> showErrorPopup(throwable, false));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue