Contents

finishLoading(with:)

Causes the receiver to handle the failure to load a resource for which a resource loader’s delegate took responsibility.

Declaration

func finishLoading(with error: (any Error)?)

Parameters

  • error:

    An error object indicating the reason for the failure.

Discussion

When a resource loader’s delegate takes responsibility for loading a resource, it calls this method when a failure occurred when loading the resource. This method marks the loading request as finished and notifies the resource loader object that the resource could not be loaded.

See Also

Reporting the result of the request