public class DefaultUncaughtExceptionHandler
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler
It provides proper logging of the exception in a crash.txt
file in the game's root directory that can be
further used to report the issue if it's a generic one.
ClientConfiguration.exitOnError()
Constructor and Description |
---|
DefaultUncaughtExceptionHandler() |
DefaultUncaughtExceptionHandler(boolean exitOnException) |
Modifier and Type | Method and Description |
---|---|
boolean |
exitOnException()
Indicates whether this hander currently exits the game upon an unhandled exception.
|
void |
setExitOnException(boolean exit)
Set whether the game will exit upon an unhandled exception.
|
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e) |
public DefaultUncaughtExceptionHandler()
public DefaultUncaughtExceptionHandler(boolean exitOnException)
public void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
uncaughtException
in interface java.lang.Thread.UncaughtExceptionHandler
public boolean exitOnException()
public void setExitOnException(boolean exit)
exit
- The flag that defines whether the game will exit upon an unhandled exception.