Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Getting parameter name from exception

$
0
0
Hi!
I want to get parameter name when InjectionUtils.handleBean throws
exception. For example:
@Path("/test1")
@PUT
public SuccessResult update(@QueryParam("testParam") Integer testParam)

return new SuccessResult(true);

PUT /test1?testParam=qwe

In server I get NumberFormatException, but I can't get name of parameter
for which this exception was.
How I can do this?

Thanks.

Skype: sergey.shisholik
http://www.linkedin.com/in/shisholik

Viewing all articles
Browse latest Browse all 5648

Trending Articles