android-components / mozilla.components.lib.crash.service / CrashReporterService


interface CrashReporterService (source)

Interface to be implemented by external services that accept crash reports.


Name Summary
report abstract fun report(crash: UncaughtExceptionCrash): Unit
Submits a crash report for this Crash.UncaughtExceptionCrash.abstract fun report(crash: NativeCodeCrash): Unit
Submits a crash report for this Crash.NativeCodeCrash.abstract fun report(throwable: Throwable): Unit
Submits a caught exception report for this Throwable.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.


Name Summary
GleanCrashReporterService class GleanCrashReporterService : CrashReporterService
A CrashReporterService implementation for recording metrics with Glean. The purpose of this crash reporter is to collect crash count metrics by capturing Crash.UncaughtExceptionCrash, Throwable and Crash.NativeCodeCrash events and record to the respective mozilla.components.service.glean.private.CounterMetricType.
MozillaSocorroService class MozillaSocorroService : CrashReporterService
A CrashReporterService implementation uploading crash reports to
SentryService class SentryService : CrashReporterService
A CrashReporterService implementation that uploads crash reports to a Sentry server.