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 : Error
extension KError: LocalizedError
named(_:)
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 noAPSEnvironmentEntitlement
invalidDeviceToken
invalidDeviceTokencase invalidDeviceToken
pushRegistrationNotNeededNoCustomerIPC
pushRegistrationNotNeededNoCustomerIPCcase pushRegistrationNotNeededNoCustomerIPC
noDeviceToken
noDeviceTokencase noDeviceToken
identificationFailed(_:)
identificationFailed(_:)case identificationFailed(String)
channelGroupNameNotFound
channelGroupNameNotFoundcase channelGroupNameNotFound
invalidJwt
invalidJwtcase invalidJwt
alreadyIdentifiedWithExternalId(externalId:)
alreadyIdentifiedWithExternalId(externalId:)case alreadyIdentifiedWithExternalId(externalId: String)
alreadyIdentifiedWithEmail(email:)
alreadyIdentifiedWithEmail(email:)case alreadyIdentifiedWithEmail(email: String)
couldNotDeregisterPush
couldNotDeregisterPushcase couldNotDeregisterPush
couldNotDeregisterPushBecause(_:)
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 describeNoParamtersSpecified
describeCustomerDateParametersNotSupported
describeCustomerDateParametersNotSupportedcase describeCustomerDateParametersNotSupported
describeNotAvailableForLocalCustomer
describeNotAvailableForLocalCustomercase describeNotAvailableForLocalCustomer
describeNotSignedInAsThatCustomerId
describeNotSignedInAsThatCustomerIdcase describeNotSignedInAsThatCustomerId
describeCurrentCustomerIsAnonymous
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 describeCurrentCustomerIsAnonymous
kbNetworkError
kbNetworkErrorcase kbNetworkError
kbArticleIdNotFound
kbArticleIdNotFoundcase kbArticleIdNotFound
kbCategoryIdNotFound
kbCategoryIdNotFoundcase kbCategoryIdNotFound
localDataStoreError
localDataStoreErrorcase localDataStoreError
invalidConversationId
invalidConversationIdcase invalidConversationId
malformedConversationId
malformedConversationIdcase malformedConversationId
unauthorizedConversationId
unauthorizedConversationIdcase unauthorizedConversationId
genericOpenConversationError(details:)
genericOpenConversationError(details:)case genericOpenConversationError(details: String)
couldNotCreateSession
couldNotCreateSessioncase couldNotCreateSession
cancelledMessageCreateDataRequest
cancelledMessageCreateDataRequestcase cancelledMessageCreateDataRequest
internetOffline
internetOfflinecase internetOffline
invalidAssistantId
invalidAssistantIdcase invalidAssistantId
couldNotReadLocalFile
couldNotReadLocalFilecase couldNotReadLocalFile
httpAttachmentUploadWasCancelled
httpAttachmentUploadWasCancelledcase httpAttachmentUploadWasCancelled
Localized Descriptions
errorDescription
errorDescriptionA description of a KError, similar to a localizedDescription on an Error
public var errorDescription: String? { get }
Updated over 4 years ago