|
From: Bill B. <bb...@re...> - 2008-07-08 12:18:31
|
Change the code to check for Failure (if it doesn't already) and rethrow that. Martin Algesten wrote: > In ResourceMethod.invoke() line 153, there's a try-catch that makes > all Failure exceptions thrown below be translated to 400. Is this > deliberate? To make NumberFormatException result in 404 I want to pass > my error code in the Failure exception, and then get that set in the > response. > > I've checked in a change where we always set the error code passed in > the Failure - it looks reasonable. > > Martin > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > 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 |