Hi!
I'm using Restlet 2.0.4 with a converterService (Jackson).
Problem is when I receive a Json object with a parse exception, it is not
caught in the StatusService (which already works with any other exception
that occurs within the resource)

Example:
WARNING: Unable to parse the object with Jackson.
org.codehaus.jackson.map.JsonMappingException: Unrecognized field "asd"
(Class com.example.ClassDTO), not marked as ignorable
 at [Source: org.restlet.engine.http.io.UnclosableInputStream@15e33df; line:
1, column: 2]

I'd like to catch it in the StatusService to set the response with an error
message.

Thanks!
-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/catching-parse-exception-using-converter-service-tp6024668p6024668.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2703993

Reply via email to