Failure
enum Failure : Error
extension URLSession.Response.Failure: ExposureSubmissionErrorTransformable
Raised when URLSession
was unable to get an actual response.
-
The session received an
Error
. In that case the body and response is discarded.Declaration
Swift
case httpError(Error)
-
The session did not receive an error but nor either an
HTTPURLResponse
/HTTP body.Declaration
Swift
case noResponse
-
Undocumented
Declaration
Swift
case teleTanAlreadyUsed
-
Undocumented
Declaration
Swift
case qrAlreadyUsed
-
Undocumented
Declaration
Swift
case qrDoesNotExist
-
Undocumented
Declaration
Swift
case regTokenNotExist
-
Undocumented
Declaration
Swift
case invalidResponse
-
Undocumented
Declaration
Swift
case serverError(Int)
-
Undocumented
Declaration
Swift
case fakeResponse
-
Undocumented
Declaration
Swift
func toExposureSubmissionError() -> ExposureSubmissionError