Prevent annoying popup errors for unhandled systray exception.

This commit is contained in:
jmacxx 2020-12-02 09:43:41 -06:00
parent 09677151a6
commit 06c0211f1f
No known key found for this signature in database
GPG Key ID: 155297BABFE94A1B

View File

@ -74,6 +74,9 @@ public class CommonSetup {
} else if (throwable instanceof ClassCastException &&
"sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData".equals(throwable.getMessage())) {
log.warn(throwable.getMessage());
} else if (throwable instanceof UnsupportedOperationException &&
"The system tray is not supported on the current platform.".equals(throwable.getMessage())) {
log.warn(throwable.getMessage());
} else {
log.error("Uncaught Exception from thread " + Thread.currentThread().getName());
log.error("throwableMessage= " + throwable.getMessage());