feign-annotation-error-decoder icon indicating copy to clipboard operation
feign-annotation-error-decoder copied to clipboard

Add option to pass methodKey to exception constructor

Open brunnels opened this issue 5 years ago • 2 comments

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?

brunnels avatar Mar 04 '19 19:03 brunnels

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...

saintf avatar May 16 '19 06:05 saintf

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

StefanFellinger avatar Jun 24 '19 06:06 StefanFellinger