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 option to pass methodKey to exception constructor #19

Open
brunnels opened this issue Mar 4, 2019 · 2 comments
Open

Add option to pass methodKey to exception constructor #19

brunnels opened this issue Mar 4, 2019 · 2 comments

Comments

@brunnels
Copy link

brunnels commented Mar 4, 2019

I'm attempting to replace a custom ErrorDecoder with annotations and I utilize the methodKey parameter that is provided to ErrorDecoder::decode. Is there a way to get this in the exception constructor like body and headers?

@saintf
Copy link
Collaborator

saintf commented May 16, 2019

Hey - I haven't really had that so there isn't the option right now. We can try to add it if it's necessary - wondering if we have to add a new annotation or so to make sure it's flagged as the method key or so...

@StefanFellinger
Copy link

Hey @brunnels,

sounds like you have similar need as we had. What we've done is copying classes from this repo and added the Request URL to the exception, so for analysis purposes we have the failed url. For this we've opened #22 which @saintf transferred to #18 enriched with detail description.

Best regards,

Stefan

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

No branches or pull requests

3 participants