BudgetExhausted

class BudgetExhausted(val wait: Duration, val reason: ExhaustedReason, val window: String?) : HttpFailure(source)

The call budget refused the call.

Stable Core. Message: The call budget is exhausted: <reason>, wait <wait>, plus , window <window> when a window is named.

Parameters

wait

how long to wait before the call may be retried; not negative.

reason

why the budget refused.

window

the name of the exhausted window, or null; not blank when present.

Throws

if wait is negative or window is blank.

Constructors

Link copied to clipboard
constructor(wait: Duration, reason: ExhaustedReason, window: String?)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard

Why the budget refused.

Link copied to clipboard

How long to wait before the call may be retried.

Link copied to clipboard

The name of the exhausted window, or null.