ResponseSerializationFailureReason
public enum ResponseSerializationFailureReason
The underlying reason the response serialization error occurred.
- inputDataNil: The server response contained no data.
- inputDataNilOrZeroLength: The server response contained no data or the data was zero length.
- inputFileNil: The file containing the server response did not exist.
- inputFileReadFailed: The file containing the server response could not be read.
- stringSerializationFailed: String serialization failed using the provided
String.Encoding
. - jsonSerializationFailed: JSON serialization failed with an underlying system error.
- propertyListSerializationFailed: Property list serialization failed with an underlying system error.
-
Declaration
Swift
case inputDataNil
-
Declaration
Swift
case inputDataNilOrZeroLength
-
Declaration
Swift
case inputFileNil
-
Declaration
Swift
case inputFileReadFailed(at: URL)
-
Declaration
Swift
case stringSerializationFailed(encoding: String.Encoding)
-
Declaration
Swift
case jsonSerializationFailed(error: Error)
-
Declaration
Swift
case propertyListSerializationFailed(error: Error)