NSError(RLMSync)

@interface NSError (RLMSync)

NSError category extension providing methods to get data out of Realm’s “client reset” error.

  • Given an appropriate Atlas App Services error, return the token that can be passed into +[RLMSyncSession immediatelyHandleError:] to immediately perform error clean-up work, or nil if the error isn’t of a type that provides a token.

    Declaration

    Objective-C

    - (nullable RLMSyncErrorActionToken *)rlmSync_errorActionToken;
  • Given an Atlas App Services client reset error, return the path where the backup copy of the Realm will be placed once the client reset process is complete.

    Declaration

    Objective-C

    - (nullable NSString *)rlmSync_clientResetBackedUpRealmPath;