DataQueryError

open class DataQueryError: DataError

Exception thrown when a query cannot be parsed or evaluated.

  • Default initializer.

    Declaration

    Swift

    override public init()
  • Thrown when a value cannot be parsed from a query URL.

    Declaration

    Swift

    open class func cannotParse(_ value: String, type: String) -> DataQueryError

    Parameters

    value

    Text of value that could not be parsed.

    type

    Name of expected data type.

  • Declaration

    Swift

    open class func withCause(_ cause: Error?) -> DataQueryError

    Parameters

    cause

    Root cause.

    Return Value

    A new exception with the specified root cause.

  • Declaration

    Swift

    open class func withMessage(_ message: String?) -> DataQueryError

    Parameters

    message

    Message text.

    Return Value

    A new exception with the specified message text.