public final class CrashReportFactory
extends java.lang.Object
CrashReport.| Constructor and Description |
|---|
CrashReportFactory(android.content.Context applicationContext,
java.lang.String mapboxPackage,
java.lang.String mapboxModuleVersion,
java.util.Set<java.lang.String> allowedStacktracePrefixes) |
| Modifier and Type | Method and Description |
|---|---|
CrashReport |
createReportForCrash(java.lang.Thread thread,
java.lang.Throwable throwable)
Create
CrashReport for crash. |
CrashReport |
createReportForCrash(java.lang.Thread thread,
java.lang.Throwable throwable,
java.util.Map<java.lang.String,java.lang.String> customData)
Create
CrashReport for crash. |
CrashReport |
createReportForNonFatal(java.lang.Throwable throwable)
Create
CrashReport for non-fatal error. |
CrashReport |
createReportForNonFatal(java.lang.Throwable throwable,
java.util.Map<java.lang.String,java.lang.String> customData)
Create
CrashReport for non-fatal error. |
public CrashReportFactory(android.content.Context applicationContext,
java.lang.String mapboxPackage,
java.lang.String mapboxModuleVersion,
java.util.Set<java.lang.String> allowedStacktracePrefixes)
@Nullable public CrashReport createReportForCrash(@Nullable java.lang.Thread thread, @Nullable java.lang.Throwable throwable)
CrashReport for crash.thread - thread, where exception has occurredthrowable - crash itself@Nullable public CrashReport createReportForCrash(@Nullable java.lang.Thread thread, @Nullable java.lang.Throwable throwable, @Nullable java.util.Map<java.lang.String,java.lang.String> customData)
CrashReport for crash.thread - thread, where exception has occurredthrowable - crash itselfcustomData - extra information useful for report, provided by the user@Nullable public CrashReport createReportForNonFatal(@Nullable java.lang.Throwable throwable)
CrashReport for non-fatal error.throwable - non-fatal error@Nullable public CrashReport createReportForNonFatal(@Nullable java.lang.Throwable throwable, @Nullable java.util.Map<java.lang.String,java.lang.String> customData)
CrashReport for non-fatal error.throwable - non-fatal errorcustomData - extra information useful for report, provided by the user