ErrorAction

public struct ErrorAction

An Error ocurred in the interaction either locally or reported in the server response.

  • The human readable error description.

    Declaration

    Swift

    public let description: String?
  • If it’s possible to recover from this error by retrying the previous action.

    Declaration

    Swift

    public let isRecoverable: Bool
  • If the error was generated by the SDK or reported by Talkdesk.

    Declaration

    Swift

    public let isLocal: Bool
  • Create an ErrorAction.

    Declaration

    Swift

    public init(description aDescription: String, isRecoverable: Bool = false)

    Parameters

    description

    the human readable error description

    isRecoverable

    if it’s possible to recover from this error by retrying

  • Create an ErrorAction from an ID and given attributes.

    Declaration

    Swift

    public init?(id: String, attributes: AnyObject?)

    Parameters

    id

    unique ID for this Action

    attributes

    attributes of this Action