TXCDSError

public enum TXCDSError : Error

All possible errors that may be produced during a fetch (pull) or a push operation

  • The provided CDS url was invalid

    Declaration

    Swift

    case invalidCDSURL
  • No locale codes were provided to the fetch operation

    Declaration

    Swift

    case noLocaleCodes
  • Translation strings to be pushed failed to be serialized

    Declaration

    Swift

    case failedSerialization
  • The CDS request failed with a specific underlying error

    Declaration

    Swift

    case requestFailed(error: Error)
  • The HTTP response received by CDS was invalid

    Declaration

    Swift

    case invalidHTTPResponse
  • The server responded with a specific failure status code

    Declaration

    Swift

    case serverError(statusCode: Int)
  • The fetch / push operation exceeded the MAX_RETRIES (20)

    Declaration

    Swift

    case maxRetriesReached
  • The server response could not be parsed

    Declaration

    Swift

    case nonParsableResponse
  • No data was received from the server response

    Declaration

    Swift

    case noData
  • The job status request failed

    Declaration

    Swift

    case failedJobRequest
  • A specific job error was returned by CDS

    Declaration

    Swift

    case jobError(status: String, code: String, title: String,
                  detail: String, source: [String : String])