KError

KError Enumerations reference for Kustomer Chat iOS Core API .

Errors from the KustomerChat. See the error’s localizedDescription property for a description the error.

There are two special types of errors:

  1. named(String)
  2. generic(Error)
public enum KError : Error
extension KError: LocalizedError

named(_:)

A custom error with a meaningful localizedDescription parameter.

case named(String)

generic(_:)

A standard error from a system or other library, wrapped in KError. Examine the nested error parameter to find the description.

case generic(Error)

alamofire(_:)

An Alamofire error. Examine the nested error parameter to find the description.

case alamofire(KUSAFError)

api(details:)

An error from our REST API. The details parameter contains the full json error object from the REST API.

case api(details: [Any]?)

noAPSEnvironmentEntitlement

case noAPSEnvironmentEntitlement

invalidDeviceToken

case invalidDeviceToken

pushRegistrationNotNeededNoCustomerIPC

case pushRegistrationNotNeededNoCustomerIPC

noDeviceToken

case noDeviceToken

identificationFailed(_:)

case identificationFailed(String)

channelGroupNameNotFound

case channelGroupNameNotFound

invalidJwt

case invalidJwt

alreadyIdentifiedWithExternalId(externalId:)

case alreadyIdentifiedWithExternalId(externalId: String)

alreadyIdentifiedWithEmail(email:)

case alreadyIdentifiedWithEmail(email: String) 

couldNotDeregisterPush

case couldNotDeregisterPush

couldNotDeregisterPushBecause(_:)

case couldNotDeregisterPushBecause(Error)

couldNotDeregisterPushBecauseOf(_:)

case couldNotDeregisterPushBecauseOf(String)

unknownLanguageCode(_:)

case unknownLanguageCode(String)

describe(details:)

case describe(details: [Any]?)

describeUnknownParameter(parameter:details:)

case describeUnknownParameter(parameter: String, details: [Any]?)

describeParameterWrongType(parameter:details:)

case describeParameterWrongType(parameter: String, details: [Any]?)

describeNoParamtersSpecified

case describeNoParamtersSpecified

describeCustomerDateParametersNotSupported

case describeCustomerDateParametersNotSupported

describeNotAvailableForLocalCustomer

case describeNotAvailableForLocalCustomer

describeNotSignedInAsThatCustomerId

case describeNotSignedInAsThatCustomerId

describeCurrentCustomerIsAnonymous

You can only describe a non-anonymous customer. A customer becomes non-anon in two ways: having at least one conversation, or having an externalId/email assigned to them with log in.

case describeCurrentCustomerIsAnonymous

kbNetworkError

case kbNetworkError

kbArticleIdNotFound

case kbArticleIdNotFound

kbCategoryIdNotFound

case kbCategoryIdNotFound

localDataStoreError

case localDataStoreError

invalidConversationId

case invalidConversationId

malformedConversationId

case malformedConversationId

unauthorizedConversationId

case unauthorizedConversationId

genericOpenConversationError(details:)

case genericOpenConversationError(details: String)

couldNotCreateSession

case couldNotCreateSession

cancelledMessageCreateDataRequest

case cancelledMessageCreateDataRequest

internetOffline

case internetOffline

invalidAssistantId

case invalidAssistantId

couldNotReadLocalFile

case couldNotReadLocalFile

httpAttachmentUploadWasCancelled

case httpAttachmentUploadWasCancelled

Localized Descriptions

errorDescription

A description of a KError, similar to a localizedDescription on an Error

public var errorDescription: String? { get }

Did this page help you?