-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add OnError #54
Conversation
5ab9bc5
to
d934fe9
Compare
Can I help on moving forward with this PR? I'm very interested on start using it. Thanks |
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. |
I released an alpha version. |
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reword.
Thanks, we will give it a try and provide feedback.
…On Mon, Oct 31, 2022, 15:18 Carl Johnson ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In builder_core.go
<#54 (comment)>:
> @@ -165,6 +166,12 @@ func (rb *Builder) Config(cfgs ...Config) *Builder {
return rb
}
+// OnError adds an ErrorHandler to run if any part of building, validating, or handling a request fails.
Add more documentation.
—
Reply to this email directly, view it on GitHub
<#54 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAACVLXBJFBKP6JUI2GIENTWF7ILVANCNFSM6AAAAAAQVGMAFE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
badeabb
to
4eb2ea5
Compare
4eb2ea5
to
a05f88c
Compare
a85671b
to
ec4028b
Compare
ec4028b
to
2bbf480
Compare
See #63, which has been merged. |
See #52 and #32.