KdrantException
Base type for all errors surfaced by a Kdrant client. A sealed hierarchy lets callers exhaustively when over the failure modes.
Note: kotlinx.coroutines.CancellationException is never wrapped in a KdrantException; it must always propagate so structured concurrency and cancellation keep working.
Inheritors
Types
The collection or resource already exists (HTTP 409). Not retryable.
The referenced collection does not exist.
The server rejected the request as malformed (HTTP 4xx other than auth/not-found).
The server rejected the request because it is rate-limited (HTTP 429). Retryable: the client already retried with backoff, honoring the server's Retry-After, before surfacing this.
An unexpected server-side error (HTTP 5xx other than 503). Not retried automatically.
Qdrant is temporarily unavailable (HTTP 503, e.g. a shard is not ready). Retryable: surfaced only after the client's retries were exhausted.
The request exceeded its configured timeout.
A transport/connection-level failure — Qdrant could not be reached (connection refused, DNS failure, connection reset, ...). Transient I/O failures are retried with backoff before this is surfaced.
Authentication failed or is required (missing/invalid API key).