Instance Method

connection(_:didFailWithError:)

Sent when a connection fails to load its request successfully.

Declaration

optional func connection(_ connection: NSURLConnection, didFailWithError error: Error)

Parameters

connection

The connection sending the message.

error

An error object containing details of why the connection failed to load the request successfully.

Discussion

Once the delegate receives this message, it will receive no further messages for connection.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software