ContactCenterError

public enum ContactCenterError : Error

Describes API errors.

  • Tag: ContactCenterError
  • The baseURL parameter provided during ContactCenterCommunicator instance creation does not represent valid HTTP URL.

    Declaration

    Swift

    case failedToBuildBaseURL
  • The REST request payload received from the server is not in JSON format.

    Declaration

    Swift

    case failedToCodeJSON(nestedErrors: [Error])
  • Unable to create valid HTTP request.

    Declaration

    Swift

    case failedToCreateURLRequest
  • Unknown error code received from the server.

    Declaration

    Swift

    case badStatusCode(statusCode: Int, ContactCenterErrorResponse?)
  • Unexpected response received from the server.

    Declaration

    Swift

    case unexpectedResponse(URLResponse?)
  • An application attempted to send the request with empty payload.

    Declaration

    Swift

    case dataEmpty
  • An unknown event received from the server.

    Declaration

    Swift

    case failedToCast(String)
  • Chat session has already been ended.

    Declaration

    Swift

    case chatSessionNotFound
  • Application attempted to call getCaseHistory or closeCase API requests before server specified a CRM case for the session (before chatSessionCaseSet event is received).

    Declaration

    Swift

    case chatSessionCaseNotSpecified