iOS SDK Version

FBSDKGraphErrorRecoveryProcessorDelegate

@protocolFBSDKGraphErrorRecoveryProcessorDelegate<NSObject>
Defines a delegate for FBSDKGraphErrorRecoveryProcessor.
  • Indicates the error recovery has been attempted.

    Declaration

    Objective-C
    -(void)processorDidAttemptRecovery:(nonnullFBSDKGraphErrorRecoveryProcessor*)processordidRecover:(BOOL)didRecovererror:(nullableNSError*)error;
    Swift
    funcprocessorDidAttemptRecovery(_processor:FBSDKGraphErrorRecoveryProcessor,didRecover:Bool,error:Error?)

    Parameters

    processor
    the processor instance.
    didRecover
    YES if the recovery was successful.
    error
    the error that that was attempted to be recovered from.
  • Indicates the processor is about to process the error.
    return NO if the processor should not process the error. For example, if you want to prevent alerts of localized messages but otherwise perform retries and recoveries, you could return NO for errors where userInfo[FBSDKGraphRequestErrorKey] equal to FBSDKGraphRequestErrorOther

    Declaration

    Objective-C
    -(BOOL)processorWillProcessError:(nonnullFBSDKGraphErrorRecoveryProcessor*)processorerror:(nullableNSError*)error;
    Swift
    optionalfuncprocessorWillProcessError(_processor:FBSDKGraphErrorRecoveryProcessor,error:Error?)->Bool

    Parameters

    processor
    the processor instance.
    error
    the error is about to be processed.