notion-dotnet / notion-sdk-net

A Notion SDK for .Net
MIT License
181 stars 46 forks source link

Expose Retry-After value into the exception #362

Closed Poltuu closed 12 months ago

Poltuu commented 1 year ago

Is your feature request related to a problem? Please describe. Notion exposes a Retry-After after when reaching the rate limit. But the library hides it, forcing the developer to guess as to when to retry.

Describe the solution you'd like Ideally, the NotionApiException should expose the value, probably as a Timespan?.

Describe alternatives you've considered We could also consider adding a RateLimitNotionApiException : NotionApiException exception class for this use case.

Additional context The doc

KoditkarVedant commented 12 months ago

Related #253

KoditkarVedant commented 12 months ago

This has been released as part of 4.2.0