captureException

open override fun captureException(exception: Throwable, distinctId: String?, 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