recordNonFatal

open override fun recordNonFatal(throwable: Throwable, attributes: Map<String, String> = emptyMap())(source)

Records a non-fatal throwable that has no ViewModel context.

reportViewModelError is shaped around a ViewModel flow failure, which does not fit throwables caught outside the presentation layer, for example an exception raised on a third-party SDK's own executor and intercepted by an uncaught-exception handler.

Parameters

throwable

the exception to record

attributes

optional key/value pairs to attach as custom keys