NexusError, carries a stable name, and
survives instanceof after transpilation.
The hierarchy
Which of these you will actually see
Most of them are handled inside the SDK and never surface. At startup -NexusConfigError for a mistake in the options, or
NexusInitError if the first sync fails. Both are worth surfacing to the
developer; neither is a runtime condition to design around.
From AB evaluation - NexusAbAddonNotAvailableError when the add-on is not
active. Fall back to the cached flag.
Everything else is absorbed. A 5xx is retried, a 429 is waited out, a 402
slows the refresh loop, a timeout is retried. Throughout, reads keep returning
the last good snapshot, so there is nothing for the application to do.
Billing
A 402 does not stop the client. Reads keep being served from the snapshot, and the refresh loop slows to one attempt every five minutes rather than halting - so the client recovers on its own once the invoice is settled, with nothing to restart. Surface it passively if you want to:Public keys and secrets
A browser client holds a public key, so it has nogetSecret() method at all
(removed in v0.16.0 - it could only ever throw). Secrets belong in a backend SDK;
there is no configuration that makes them reachable from a browser.
