Skip to main content
All SDK exceptions extend NexusException, which extends RuntimeException. You can catch the base class to handle all SDK errors in one place, or catch specific subclasses for fine-grained control.

Exception reference

Catching exceptions at client creation

Catching secret access errors

Catching A/B errors

WIF-specific errors

Quarantine

When the SDK receives a quarantine response (HTTP 429 with a JSON body containing "error": "quarantined"), it throws NexusQuarantinedException from sync() and also calls observer.onQuarantined(reason, expiresAt). For the SSE stream, the quarantine is handled automatically - the stream sleeps until expiresAt and reconnects without incrementing the failure counter.