recordException

abstract fun recordException(throwable: Throwable, message: String? = null)

Report a caught, non-crashing error.