Skip to main content
All SDK exceptions derive from NozleError.
Catch NozleAuthenticationError before NozleValidationError if the branches need different handling because authentication errors are a validation subtype.

Safe API details

NozleAPIError exposes:
  • operation;
  • status_code; and
  • response_details.
The transport redacts known secret, token, authorization, and key fields and replaces the active API key if it appears in a string response.

Retry behavior

The SDK configures zero automatic HTTP retries. This avoids replaying mutations without application context.
  • For idempotent Entity, credit-transfer, and usage mutations, retry with the same idempotency key and payload.
  • For track(), retry the same event with the same transaction ID.
  • Decide whether a read is safe to retry according to your request budget.
  • Do not generate a new idempotency key after an uncertain outcome.

LLM wrapper warnings

LLM wrappers preserve successful provider responses when Nozle tracking fails. They emit NozleTrackingWarning instead of replacing the provider result.
Use manual queued tracking when telemetry delivery must be durable.