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

Add OnError #54

Closed
wants to merge 18 commits into from
Closed

Add OnError #54

wants to merge 18 commits into from

Conversation

earthboundkid
Copy link
Owner

See #52 and #32.

error_handler.go Outdated Show resolved Hide resolved
error_handler.go Outdated Show resolved Hide resolved
errorkind.go Outdated Show resolved Hide resolved
builder_core.go Outdated Show resolved Hide resolved
@earthboundkid earthboundkid force-pushed the exp/onerror branch 3 times, most recently from 5ab9bc5 to d934fe9 Compare September 29, 2022 20:11
@pacoguzman
Copy link

Can I help on moving forward with this PR? I'm very interested on start using it. Thanks

@earthboundkid
Copy link
Owner Author

See the discussion in #52. I’m still not convinced the API is right. I can issue an alpha version with an unstable API though if you don’t mind being broken if it changes again.

@earthboundkid
Copy link
Owner Author

I released an alpha version. go get -v -u github.com/carlmjohnson/[email protected] I would appreciate feedback if you end up using it.

errorkind.go Outdated Show resolved Hide resolved
@@ -174,3 +174,9 @@ func (rb *Builder) ToHeaders(h map[string][]string) *Builder {
Head().
Handle(ChainHandlers(CopyHeaders(h), consumeBody))
}

// OnValidatorError calls OnError by converting h with ValidatorHandler into an ErrorHandler.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reword.

@pacoguzman
Copy link

pacoguzman commented Oct 31, 2022 via email

@earthboundkid
Copy link
Owner Author

See #63, which has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants