ResponseSerializationFailureReason
public enum ResponseSerializationFailureReason : Sendable
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: any Error) -
A
DataDecoderfailed to decode the response due to the associatedError.Declaration
Swift
case decodingFailed(error: any Error) -
A custom response serializer failed due to the associated
Error.Declaration
Swift
case customSerializationFailed(error: any Error) -
Generic serialization failed for an empty response that wasn’t type
Emptybut instead the associated type.Declaration
Swift
case invalidEmptyResponse(type: String)
View on GitHub
Install in Dash