recordException

Records a non-fatal report to send to Crashlytics, with the exception's class, message and stack trace. On Apple platforms the stack frames are reported as code addresses of the Kotlin framework, which Crashlytics symbolicates from its dSYM; see Crashlytics on iOS in the README.

Parameters

exception

a Throwable to be recorded as a non-fatal event.


fun recordException(exception: Throwable, customKeys: Map<String, Any>)(source)

Records a non-fatal report to send to Crashlytics.

Combined with app level custom keys, the event is restricted to a maximum of 64 key/value pairs. New keys beyond that limit are ignored. Keys or values that exceed 1024 characters are truncated.

The values of event keys override the values of app level custom keys if they're identical. On Apple platforms, where the SDK has no per-event keys, they are logged as 🔑 key = value lines just before the event, so they show in its logs rather than its keys; see Crashlytics on iOS in the README.

Parameters

exception

a Throwable to be recorded as a non-fatal event.

customKeys

A dictionary of keys and the values to associate with the non fatal exception, in addition to the app level custom keys.