Class AnalyticsCrashReport
java.lang.Object
com.codename1.analytics.AnalyticsCrashReport
A crash / exception report routed to providers that advertise
AnalyticsCapability.CRASH_REPORTING. This is the analytics
abstraction for exception telemetry; it is distinct from the dedicated
on-device crash-protection client in com.codename1.crash.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns a builder for adding custom keys to a base report.static AnalyticsCrashReportCreates a crash report.Optional custom key/value context attached to the report.The descriptive message.The captured throwable.booleanisFatal()Whether the exception was fatal.
-
Method Details
-
create
Creates a crash report.
Parameters
-
throwable: the captured exception, may be null -
message: a human readable description, may be null -
fatal: true if the exception terminated the application
Returns
a new crash report
-
-
getThrowable
The captured throwable.
Returns
the throwable or null
-
getMessage
The descriptive message.
Returns
the message or null
-
isFatal
public boolean isFatal()Whether the exception was fatal.
Returns
true if fatal
-
getCustomKeys
-
asBuilder
Returns a builder for adding custom keys to a base report.
Returns
a builder seeded from this report
-