NSError(RLMSync)

@interface NSError (RLMSync)

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

  • Given a Realm Object Server client reset error, return the block that can be called to manually initiate the client reset process, or nil if the error isn’t a client reset error.

    Declaration

    Objective-C

    - (nullable void (^)(void))rlmSync_clientResetBlock;

    Swift

    func __rlmSync_clientResetBlock() -> (() -> Void)?
  • Given a Realm Object Server permission denied error, return the block that can be called to manually initiate the Realm file deletion process, or nil if the error isn’t a permission denied error.

    Declaration

    Objective-C

    - (nullable void (^)(void))rlmSync_deleteRealmBlock;

    Swift

    func __rlmSync_deleteRealmBlock() -> (() -> Void)?
  • Given a Realm Object Server 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;