MockURLProtocolError
public enum MockURLProtocolError : Swift.Error
Errors that can be returned in the response via startLoading()
-
Either no mock exists for the url in the request, or a HTTPURLResponse can’t be constructed with the data provided
Declaration
Swift
case missingConfiguration(url: String)
-
Returned when the mock’s data property is nil and the mock asserts there should be data returned in the response
Declaration
Swift
case noDataProvidedWhenExpected(url: String)