Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1028

[C-API] SDK callbacks should be able to return error strings

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Core
    • None

      SDK callbacks, such as realm_data_initialization_func_t should be able to provide an error string along with the false value. The reason is that if an exception occurs in managed code, the SDK can return false, which will result in a generic exception being thrown by Realm::get_shared_realm. This is not helpful as it doesn't contain information about the actual error.

            Assignee:
            nicola.cabiddu@mongodb.com Nicola Cabiddu
            Reporter:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: