captureException

abstract fun captureException(exception: Throwable, distinctId: String? = null, properties: Map<String, Any>? = null)
open fun captureException(exception: Throwable, properties: Map<String, Any>)

Captures an exception Docs https://posthog.com/docs/error-tracking

Parameters

exception

the exception to capture

distinctId

the distinctId

properties

the exception properties to add to the event


open fun captureException(exception: Throwable, distinctId: String?)
open fun captureException(exception: Throwable)

Captures an exception Docs https://posthog.com/docs/error-tracking

Parameters

exception

the exception to capture

properties

the exception properties to add to the event

distinctId

the distinctId