19#ifndef CPPREALM_BRIDGE_SYNC_ERROR_HPP
20#define CPPREALM_BRIDGE_SYNC_ERROR_HPP
22#include <cpprealm/internal/bridge/mixed.hpp>
23#include <cpprealm/internal/bridge/status.hpp>
24#include <cpprealm/internal/bridge/utils.hpp>
26#include <unordered_map>
32namespace realm::internal::bridge {
35 std::string object_name;
51 [[nodiscard]] std::unordered_map<std::string, std::string>
user_info()
const;
56 [[nodiscard]]
status get_status()
const;
58 [[nodiscard]]
bool is_fatal()
const;
60 [[nodiscard]] std::string_view
message()
const;
64#ifdef CPPREALM_HAVE_GENERATED_BRIDGE_TYPES
65 storage::SyncError m_error[1];
67 std::shared_ptr<SyncError> m_error;
Definition: sync_error.hpp:34
Definition: status.hpp:63
Definition: sync_error.hpp:40
std::unordered_map< std::string, std::string > user_info() const
Definition: sync_error.cpp:83
bool is_client_reset_requested() const
The error indicates a client reset situation.
Definition: sync_error.cpp:59
std::string_view message() const
A consolidated explanation of the error, including a link to the server logs if applicable.
Definition: sync_error.cpp:51
std::vector< compensating_write_error_info > compensating_writes_info() const
Definition: sync_error.cpp:91
Definition: managed_primary_key.hpp:30