Skip to main content
Handle a client error according to where it occurred in the lifecycle. Exact error names and associated values differ by platform; use the SDK Reference as the source of truth.
Spatius API Keys must never be used for client recovery. In Direct Mode, the backend exchanges the API Key for a short-lived Session Token and returns only that token to the client.

Recovery flow

  1. Log the error, integration, SDK version, region, and current lifecycle phase.
  2. Retry only network and download failures that are likely to be transient.
  3. Refresh credentials for authentication failures instead of repeatedly reconnecting with the same token.
  4. Treat format, asset compatibility, and application configuration failures as developer errors.
  5. Stop automatic retries after a bounded number of attempts and surface a recoverable UI state.

Exact platform errors

For backend failures, see Server Error Handling.