On Nov 24, 2009, at 11:08 AM, Brian Gilstrap wrote:
> On Nov 24, 2009, at 10:27 AM, Marc Hadley wrote:
>
>> I did reply to your original message:
>>
>> https://jersey.dev.java.net/servlets/ReadMsg?list=users&msgNo=8719
In that message, Marc wrote:
> You are correct that media type is not considered when searching for
> an ExceptionMapper - something we overlooked that I agree would be a
> worthwhile enhancement. Please open an issue at http://jsr311.dev.java.net/
> and we'll address it in JAX-RS 2.0.
>
> For now you'll need to centralize exception mapping in one place and
> use something like Request.selectVariant to pick the best media type
> for the response.
>
> Marc.
I've opened issue #84 at jsr311.dev.java.net to track this enhancement request.
Thanks,
Brian