ErrorEvent

class ErrorEvent(var code: String, var message: String?, data: Any? = null, postEvent: () -> Unit? = null) : Event

An event that reports an error.

Constructors

Link copied to clipboard
constructor(code: String, message: String?, data: Any? = null, postEvent: () -> Unit? = null)
constructor(error: NRError, postEvent: () -> Unit? = null)

Creates an event from error. code is taken from NRError.errorCode, message from NRError.reason or, if that is null, from NRError.description. error is set as the event's data.

Properties

Link copied to clipboard

The error code. One of the NRError error code constants.

Link copied to clipboard
var data: Any?

Optional payload attached to the event.

Link copied to clipboard

A description of the error, or null if none is available.

Link copied to clipboard
val postEvent: () -> Unit?

Unused. The SDK never invokes this callback.

Link copied to clipboard

The event category, for example "state" for com.genesys.cloud.integration.core.StateEvent or "error" for com.genesys.cloud.integration.core.ErrorEvent.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Two events are equal when their type, data, and postEvent are equal.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code based on type.