Class StreamGlobalExceptionHandler
-
- All Implemented Interfaces:
-
java.lang.Thread.UncaughtExceptionHandler
public final class StreamGlobalExceptionHandler implements Thread.UncaughtExceptionHandler
A global exception handler that snatches all exceptions in the application and forward to the exception tracing screen. The exception tracing screen helps you to debug the error messages, and users can restart the crashed application or share the log messages.
You can install the exception handler with the install or installOnDebuggableApp methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classStreamGlobalExceptionHandler.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static StreamGlobalExceptionHandler.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description StreamGlobalExceptionHandler(Application application, String packageName, Thread.UncaughtExceptionHandler defaultExceptionHandler, Function1<String, Unit> exceptionHandler)
-
Method Summary
Modifier and Type Method Description UnituncaughtException(Thread thread, Throwable throwable)-
-
Constructor Detail
-
StreamGlobalExceptionHandler
StreamGlobalExceptionHandler(Application application, String packageName, Thread.UncaughtExceptionHandler defaultExceptionHandler, Function1<String, Unit> exceptionHandler)
-
-
Method Detail
-
uncaughtException
Unit uncaughtException(Thread thread, Throwable throwable)
-
-
-
-