feign-annotation-error-decoder
feign-annotation-error-decoder copied to clipboard
Add option to pass methodKey to exception constructor
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?
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...
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