users@jersey.java.net

[Jersey] JSONP and exception mapping

From: Ed Anuff <ed_at_anuff.com>
Date: Tue, 14 Feb 2012 19:22:43 -0800

I'm wondering what the best way is to handle exceptions when using JSONP?
I'm thinking that the best thing to do is to return a proper JSONP result
with an error code inside of the response, but I can't really see how that
would be accomplished with the existing ExceptionMapper mechanism. Is
there a way to do this?

Ed