public final class CrashReporter
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler
DataSources.Key
.Modifier and Type | Method and Description |
---|---|
static CrashReporter |
initialize(java.lang.String instanceId,
Tealium.Config config,
boolean setTruncateCrashStackTrace)
Enables Tealium Crash Reporter.
|
void |
uncaughtException(java.lang.Thread thread,
java.lang.Throwable ex)
Handler invoked when a Thread abruptly terminates due to an uncaught exception.
|
public static CrashReporter initialize(java.lang.String instanceId, Tealium.Config config, boolean setTruncateCrashStackTrace)
Tealium.createInstance(String, Tealium.Config)
instanceId
- Tealium instance nameconfig
- Tealium.Config
of the Tealium instancesetTruncateCrashStackTrace
- whether or not to truncate stacke trace. If true, stack trace
will contain a singlepublic void uncaughtException(java.lang.Thread thread, java.lang.Throwable ex)
uncaughtException
in interface java.lang.Thread.UncaughtExceptionHandler
thread
- ex
-