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:
named(String)generic(Error)
public enum KError : Errorextension KError: LocalizedErrornamed(_:)
named(_:)A custom error with a meaningful localizedDescription parameter.
case named(String)generic(_:)
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(_:)
alamofire(_:)An Alamofire error. Examine the nested error parameter to find the description.
case alamofire(KUSAFError)api(details:)
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
noAPSEnvironmentEntitlementcase noAPSEnvironmentEntitlementinvalidDeviceToken
invalidDeviceTokencase invalidDeviceTokenpushRegistrationNotNeededNoCustomerIPC
pushRegistrationNotNeededNoCustomerIPCcase pushRegistrationNotNeededNoCustomerIPCnoDeviceToken
noDeviceTokencase noDeviceTokenidentificationFailed(_:)
identificationFailed(_:)case identificationFailed(String)channelGroupNameNotFound
channelGroupNameNotFoundcase channelGroupNameNotFoundinvalidJwt
invalidJwtcase invalidJwtalreadyIdentifiedWithExternalId(externalId:)
alreadyIdentifiedWithExternalId(externalId:)case alreadyIdentifiedWithExternalId(externalId: String)alreadyIdentifiedWithEmail(email:)
alreadyIdentifiedWithEmail(email:)case alreadyIdentifiedWithEmail(email: String) couldNotDeregisterPush
couldNotDeregisterPushcase couldNotDeregisterPushcouldNotDeregisterPushBecause(_:)
couldNotDeregisterPushBecause(_:)case couldNotDeregisterPushBecause(Error)couldNotDeregisterPushBecauseOf(_:)
couldNotDeregisterPushBecauseOf(_:)case couldNotDeregisterPushBecauseOf(String)unknownLanguageCode(_:)
unknownLanguageCode(_:)case unknownLanguageCode(String)describe(details:)
describe(details:)case describe(details: [Any]?)describeUnknownParameter(parameter:details:)
describeUnknownParameter(parameter:details:)case describeUnknownParameter(parameter: String, details: [Any]?)describeParameterWrongType(parameter:details:)
describeParameterWrongType(parameter:details:)case describeParameterWrongType(parameter: String, details: [Any]?)describeNoParamtersSpecified
describeNoParamtersSpecifiedcase describeNoParamtersSpecifieddescribeCustomerDateParametersNotSupported
describeCustomerDateParametersNotSupportedcase describeCustomerDateParametersNotSupporteddescribeNotAvailableForLocalCustomer
describeNotAvailableForLocalCustomercase describeNotAvailableForLocalCustomerdescribeNotSignedInAsThatCustomerId
describeNotSignedInAsThatCustomerIdcase describeNotSignedInAsThatCustomerIddescribeCurrentCustomerIsAnonymous
describeCurrentCustomerIsAnonymousYou 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 describeCurrentCustomerIsAnonymouskbNetworkError
kbNetworkErrorcase kbNetworkErrorkbArticleIdNotFound
kbArticleIdNotFoundcase kbArticleIdNotFoundkbCategoryIdNotFound
kbCategoryIdNotFoundcase kbCategoryIdNotFoundlocalDataStoreError
localDataStoreErrorcase localDataStoreErrorinvalidConversationId
invalidConversationIdcase invalidConversationIdmalformedConversationId
malformedConversationIdcase malformedConversationIdunauthorizedConversationId
unauthorizedConversationIdcase unauthorizedConversationIdgenericOpenConversationError(details:)
genericOpenConversationError(details:)case genericOpenConversationError(details: String)couldNotCreateSession
couldNotCreateSessioncase couldNotCreateSessioncancelledMessageCreateDataRequest
cancelledMessageCreateDataRequestcase cancelledMessageCreateDataRequestinternetOffline
internetOfflinecase internetOfflineinvalidAssistantId
invalidAssistantIdcase invalidAssistantIdcouldNotReadLocalFile
couldNotReadLocalFilecase couldNotReadLocalFilehttpAttachmentUploadWasCancelled
httpAttachmentUploadWasCancelledcase httpAttachmentUploadWasCancelledLocalized Descriptions
errorDescription
errorDescriptionA description of a KError, similar to a localizedDescription on an Error
public var errorDescription: String? { get }Updated 12 days ago