NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::RateLimitError Class Reference

Thrown by a Provider when an upstream API returned HTTP 429 (rate limit exceeded). More...

#include <provider.h>

Inherits std::runtime_error.

Public Member Functions

int retry_after_seconds () const noexcept
 Seconds to wait per the upstream, or -1 if unknown.
 

Detailed Description

Thrown by a Provider when an upstream API returned HTTP 429 (rate limit exceeded).

This is a typed exception so decorators like RateLimitedProvider can catch it specifically and apply backoff, without fragile string parsing of a generic error message.

The retry_after_seconds() value is the upstream's Retry-After header in seconds, or -1 if no usable Retry-After was present. Decorators should prefer the honest value when positive and fall back to their own default when -1.

Definition at line 37 of file provider.h.


The documentation for this class was generated from the following file: