Exception: Beagle::Turso::SyncManager::NotSyncedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_record/connection_adapters/beagle_turso/sync_manager.rb

Overview

Raised by +push!+/+pull!+/+sync!+ when the given connection is local-only (its database.yml entry has no +remote_url+/+auth_token+, so BeagleTursoAdapter opened it via Database.open_local). The underlying Client#push/#pull already raise a bare RuntimeError for this (see Beagle::Turso::Database#push/#pull); SyncManager re-raises it as this distinct, documented type so callers can rescue it specifically instead of matching on the driver's message text. A genuine sync failure against a real remote (network error, auth failure, etc.) is NOT reclassified -- it propagates as whatever error the driver raised, unchanged.