message: Unsupported file format version error
diff: @@ -274,6 +274,11 @@ REALM_NOINLINE void translate_file_exception(StringData path, bool immutable)
  "in order to proceed.",
  ex.what());
  }
  + catch (UnsupportedFileFormatVersion const& ex) {
  + throw RealmFileException(RealmFileException::Kind::FormatUpgradeRequired, path,
  + util::format("Opening Realm files of format version %1 is not supported by this version of Realm", ex.source_version),
  + ex.what());
  + }
  }
  } // namespace _impl
  } // namespace realm
  @@ -347,6 +352,13 @@ void RealmCoordinator::open_db()
  util::File::remove(m_config.path);
  return open_db();
  }
  + catch (UnsupportedFileFormatVersion const&) {
  + if (m_config.schema_mode != SchemaMode::ResetFile) {
  + translate_file_exception(m_config.path, m_config.immutable());
  + }
  + util::File::remove(m_config.path);
  + return open_db();
  + }
  #if REALM_ENABLE_SYNC
  catch (IncompatibleHistories const& ex) {
  if (!server_synchronization_mode || !is_nonupgradable_history(ex))
  