Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change noRetryError for temporary errors #478

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lavoiesl
Copy link
Contributor

  • Expose an Unwrap method to leverage go's standard unwrapping
  • Let the error escape, such that hooks and end-users can access the Temporary information.
  • Do not wrap if the error already exposes Temporary, to honour it.

The main benefit is to leverage net/*'s standard errors; most of them already expose Temporary methods.

@lavoiesl lavoiesl mentioned this pull request Oct 18, 2021
@jeevatkm
Copy link
Member

@lavoiesl I like your proposal of using errors advantages introduced in go1.13. Currently, resty has minimum support as go1.11. I want to park this improvement to Resty v3 release.

@jeevatkm jeevatkm added the v3 For resty v3 label Oct 24, 2021
@jeevatkm jeevatkm added this to the v3.0.0 Milestone milestone Oct 24, 2021
- Expose an `Unwrap` method to leverage go's standard unwrapping
- Let the error escape, such that hooks and end-users can access the
  `Temporary` information.
- Do not wrap if the error already exposes `Temporary`, to honour it.
@jeevatkm jeevatkm added v3-selected and removed v3 For resty v3 labels Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants