emitErrorEvent

abstract fun emitErrorEvent(message: String)

Emits an error event with the message passed in the event's properties


abstract fun emitErrorEvent(message: String, exception: Exception)

Emits an error event including the message passed and the exception in the properties