-
- All Implemented Interfaces:
-
java.lang.Thread.UncaughtExceptionHandler
public final class JavaCrashHandler implements Thread.UncaughtExceptionHandler
Used to catch Java exceptions.
-
-
Field Summary
Fields Modifier and Type Field Description private final static JavaCrashHandlerinstance
-
Method Summary
Modifier and Type Method Description static JavaCrashHandlergetInstance()voidinitialize(int pid, String processName, String appId, String appVersion, String logDir, boolean rethrow, ITACrashCallback callback)Initialize method. voiduncaughtException(Thread thread, Throwable throwable)-
-
Method Detail
-
getInstance
static JavaCrashHandler getInstance()
-
initialize
void initialize(int pid, String processName, String appId, String appVersion, String logDir, boolean rethrow, ITACrashCallback callback)
Initialize method.
- Parameters:
pid- pidprocessName- processNameappId- appIdappVersion- appVersionlogDir- logDirrethrow- rethrowcallback- callback
-
uncaughtException
void uncaughtException(Thread thread, Throwable throwable)
-
-
-
-