FBSDKGraphErrorRecoveryProcessorDelegate Protocol Reference
Conforms to | NSObject |
Declared in | FBSDKGraphErrorRecoveryProcessor.h |
Instance Methods
processorDidAttemptRecovery:didRecover:error:
Indicates the error recovery has been attempted.
- (void)processorDidAttemptRecovery:(FBSDKGraphErrorRecoveryProcessor *)processor didRecover:(BOOL)didRecover error:(NSError *)error
Parameters
- processor
the processor instance.
- didRecover
YES if the recovery was successful.
- error
the error that that was attempted to be recovered from.
Declared In
FBSDKGraphErrorRecoveryProcessor.h
processorWillProcessError:error:
Indicates the processor is about to process the error.
- (BOOL)processorWillProcessError:(FBSDKGraphErrorRecoveryProcessor *)processor error:(NSError *)error
Parameters
- processor
the processor instance.
- error
the error is about to be processed.
Discussion
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[FBSDKGraphRequestErrorCategoryKey] equal to FBSDKGraphRequestErrorCategoryOther
Declared In
FBSDKGraphErrorRecoveryProcessor.h