ResponseSerializationFailureReason

public enum ResponseSerializationFailureReason

The underlying reason the response serialization error occurred.

  • The server response contained no data or the data was zero length.

    Declaration

    Swift

    case inputDataNilOrZeroLength
  • The file containing the server response did not exist.

    Declaration

    Swift

    case inputFileNil
  • The file containing the server response could not be read from the associated URL.

    Declaration

    Swift

    case inputFileReadFailed(at: URL)
  • String serialization failed using the provided String.Encoding.

    Declaration

    Swift

    case stringSerializationFailed(encoding: String.Encoding)
  • JSON serialization failed with an underlying system error.

    Declaration

    Swift

    case jsonSerializationFailed(error: Error)
  • A DataDecoder failed to decode the response due to the associated Error.

    Declaration

    Swift

    case decodingFailed(error: Error)
  • A custom response serializer failed due to the associated Error.

    Declaration

    Swift

    case customSerializationFailed(error: Error)
  • Generic serialization failed for an empty response that wasn’t type Empty but instead the associated type.

    Declaration

    Swift

    case invalidEmptyResponse(type: String)