|
From: Ori L. <ol...@re...> - 2013-12-09 14:02:53
|
Thanks! It does work :) ----- Original Message ----- From: "Bill Burke" <bb...@re...> To: res...@li... Sent: Monday, November 25, 2013 4:37:34 PM Subject: Re: [Resteasy-developers] RestEasy - How to intercept deserialization failure? Exception mapper should work. On 11/25/2013 4:44 AM, Ori Liel wrote: > Currently, failure of a POST or PUT request due to a desearilization problem results in 400 response code along with the unmarshalling exception in the response body, for example: "HTTP Status 400 - javax.xml.bind.UnmarshalException..." This behavior is the same for all content types (XML, json, yaml). > > I would like to be able to intercept the deserialization failure and add extra information to the error message. This information will be retrieved from a meta-data file which describes our API capabilities. I have not been able to find a suitable RestEasy or Jboss interception point, or some way to extend a RestEasy class, that would help me achieve this. I'd appreciate some advice on this issue. > > Thanks, > > Ori. > > ------------------------------------------------------------------------------ > Shape the Mobile Experience: Free Subscription > Software experts and developers: Be at the forefront of tech innovation. > Intel(R) Software Adrenaline delivers strategic insight and game-changing > conversations that shape the rapidly evolving mobile landscape. Sign up now. > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Resteasy-developers mailing list Res...@li... https://lists.sourceforge.net/lists/listinfo/resteasy-developers |