QueryError

public enum QueryError : Error, CustomDebugStringConvertible

Errors thrown for queries which have invalid construction.

  • Declaration

    Swift

    public var debugDescription: String { get }
  • Thrown if the query string for a full-text search query only has less than 2 characters.

    Declaration

    Swift

    case textSearchTooShort
  • Thrown when attempting to order query results with a property that is not prefixed with “fields.” or “sys.”.

    Declaration

    Swift

    case invalidOrderProperty
  • Thrown when a selection for the select operator is constructed in a way that is invalid.

    Declaration

    Swift

    case invalidSelection(fieldKeyPath: String)
  • Thrown when over 99 properties have been selected using the select operator. The CDA and CPA only support 100 selections and the SDK always includes “sys” as one of them.

    Declaration

    Swift

    case maxSelectionLimitExceeded