SyncCommand

open class SyncCommand : Command

Base class for synchronous commands that preserves typed throws.

Subclass this and override execute(payload:) throws(CommandError) for commands that complete their work synchronously (e.g. setting a user property, logging an event).

The protocol requirement is handled by a final wrapper — subclasses cannot accidentally override the wrong overload.