NexusInitError | provideNexus() | The initial sync failed for any reason. The cause property carries the underlying error. |
NexusUnauthorizedError | Initial sync, manual nexus.sync() | Server returned HTTP 401 - invalid API key, slug/key mismatch, or revoked key. |
NexusBillingError (v0.2.0) | Initial sync, background sync, evaluateAB | Server returned HTTP 402 - tenant has invoices overdue by more than 14 days. Background sync halts; the cache continues to serve. Use useNexusBillingOverdue() to detect the state. |
NexusAbAddonNotAvailableError (v0.3.0) | evaluateAB(), useEvaluateAB() | Server returned HTTP 403 from /v1/flags/evaluate-ab - the project does not have the AB Testing add-on enabled. |
NexusQuarantinedError (v0.4.0) | nexus.sync(), initial sync | Server returned HTTP 429 with {"error":"quarantined"} body. Carries reason (string) and expiresAt (Date). The SDK sets an internal quarantine guard and fires onQuarantined on the observer. Background sync is paused until expiresAt. |
NexusServerError (parity-exported in v0.3.1) | nexus.sync() (caught internally) | Server returned HTTP 5xx on /sync. The SDK catches this and schedules an exponential-backoff retry. Exported from the package root for instanceof checks in custom logging interceptors. |
NexusNotFoundError | Initial sync, manual nexus.sync() | Server returned HTTP 404 - unknown subdomain or missing endpoint. |
NexusPublicKeyError | useNexus().getSecret(...) | The client uses a public key. Thrown synchronously by the imperative method. The composable useSecret() returns undefined instead. |
NexusServiceKindMismatchError (v0.2.0) | useNexus().getSecret(...) | The service kind reported by the server is "frontend". The composable useSecret() returns undefined instead. |
NexusSecretNotFoundError | useNexus().getSecret(...) | The requested key is not in the cache. The composable useSecret() returns undefined instead. |