InsufficientBalanceException

Thrown for HTTP 402 — the account has insufficient balance to complete the call.

Top up the account at https://platform.deepseek.com/top_up or check the current balance with org.oremif.deepseek.api.userBalance.

Constructors

Link copied to clipboard
constructor(headers: DeepSeekHeaders, error: DeepSeekError?, message: String?)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard

Parsed error payload, or null if the body could not be decoded

Link copied to clipboard

Response headers snapshot (case-insensitive lookups)

Link copied to clipboard
expect open val message: String?
Link copied to clipboard

HTTP status code returned by the API