Contents

signalErrorResolved(_:completionHandler:)

Indicates a resolved error.

Declaration

func signalErrorResolved(_ error: any Error, completionHandler: @escaping  @Sendable ((any Error)?) -> Void)
func signalErrorResolved(_ error: any Error) async throws

Parameters

  • error:

    The original error.

  • completionHandler:

    A block that the system calls after resuming the action that triggered the original error. The block takes the following parameters:

    error

    If an error occurs, this object contains information about the error; otherwise, it’s nil.

Discussion

Use this method if any of your extension’s actions fail because of an NSFileProviderError.Code.notAuthenticated, NSFileProviderError.Code.insufficientQuota, or NSFileProviderError.Code.serverUnreachable error. As soon as you resolve the underlying error, call this method to tell the system to retry the original action.