Arguments
error — Typically an Error instance or platform-specific error information.
error_id — Identifier for support correlation when applicable.
metadata — Additional context; includes context where provided.
Documented error names include:
unexpected_error — Unexpected platform error.
partner_connect_error — Failure while connecting the user to the selected loyalty network.
The Benji Connect SDK may refine onError payloads in a future release; treat error, error_id, and metadata as the stable integration surface.