Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

AFError_ResponseSerializationFailureReason

mattt edited this page Sep 18, 2020 · 2 revisions

AFError.ResponseSerializationFailureReason

The underlying reason the response serialization error occurred.

public enum ResponseSerializationFailureReason

Enumeration Cases

inputDataNilOrZeroLength

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

case inputDataNilOrZeroLength

inputFileNil

The file containing the server response did not exist.

case inputFileNil

inputFileReadFailed

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

case inputFileReadFailed(at:​ URL)

stringSerializationFailed

String serialization failed using the provided String.Encoding.

case stringSerializationFailed(encoding:​ String.Encoding)

jsonSerializationFailed

JSON serialization failed with an underlying system error.

case jsonSerializationFailed(error:​ Error)

decodingFailed

A DataDecoder failed to decode the response due to the associated Error.

case decodingFailed(error:​ Error)

customSerializationFailed

A custom response serializer failed due to the associated Error.

case customSerializationFailed(error:​ Error)

invalidEmptyResponse

Generic serialization failed for an empty response that wasn't type Empty but instead the associated type.

case invalidEmptyResponse(type:​ String)
Types
Protocols
Global Typealiases
Clone this wiki locally