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
noAPSEnvironmentEntitlement
case noAPSEnvironmentEntitlement
invalidDeviceToken
invalidDeviceToken
case invalidDeviceToken
pushRegistrationNotNeededNoCustomerIPC
pushRegistrationNotNeededNoCustomerIPC
case pushRegistrationNotNeededNoCustomerIPC
noDeviceToken
noDeviceToken
case noDeviceToken
identificationFailed(_:)
identificationFailed(_:)
case identificationFailed(String)
channelGroupNameNotFound
channelGroupNameNotFound
case channelGroupNameNotFound
invalidJwt
invalidJwt
case invalidJwt
alreadyIdentifiedWithExternalId(externalId:)
alreadyIdentifiedWithExternalId(externalId:)
case alreadyIdentifiedWithExternalId(externalId: String)
alreadyIdentifiedWithEmail(email:)
alreadyIdentifiedWithEmail(email:)
case alreadyIdentifiedWithEmail(email: String)
couldNotDeregisterPush
couldNotDeregisterPush
case 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
describeNoParamtersSpecified
case describeNoParamtersSpecified
describeCustomerDateParametersNotSupported
describeCustomerDateParametersNotSupported
case describeCustomerDateParametersNotSupported
describeNotAvailableForLocalCustomer
describeNotAvailableForLocalCustomer
case describeNotAvailableForLocalCustomer
describeNotSignedInAsThatCustomerId
describeNotSignedInAsThatCustomerId
case describeNotSignedInAsThatCustomerId
describeCurrentCustomerIsAnonymous
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
kbNetworkError
case kbNetworkError
kbArticleIdNotFound
kbArticleIdNotFound
case kbArticleIdNotFound
kbCategoryIdNotFound
kbCategoryIdNotFound
case kbCategoryIdNotFound
localDataStoreError
localDataStoreError
case localDataStoreError
invalidConversationId
invalidConversationId
case invalidConversationId
malformedConversationId
malformedConversationId
case malformedConversationId
unauthorizedConversationId
unauthorizedConversationId
case unauthorizedConversationId
genericOpenConversationError(details:)
genericOpenConversationError(details:)
case genericOpenConversationError(details: String)
couldNotCreateSession
couldNotCreateSession
case couldNotCreateSession
cancelledMessageCreateDataRequest
cancelledMessageCreateDataRequest
case cancelledMessageCreateDataRequest
internetOffline
internetOffline
case internetOffline
invalidAssistantId
invalidAssistantId
case invalidAssistantId
couldNotReadLocalFile
couldNotReadLocalFile
case couldNotReadLocalFile
httpAttachmentUploadWasCancelled
httpAttachmentUploadWasCancelled
case httpAttachmentUploadWasCancelled
Localized Descriptions
errorDescription
errorDescription
A description of a KError
, similar to a localizedDescription on an Error
public var errorDescription: String? { get }
Updated almost 4 years ago