I would like to be able to return a custom Status 
(CLIENT_ERROR_UNPROCESSABLE_ENTITY) and error message ("Field XXX is missing", 
for example) if my deserializer detects a problem when converting the request 
payload into an object (and throws an exception within the deserialize() 
method).  

The problem is that the ConverterService.toObject() method simply logs the 
exception and doesn't pass it along.  The StatusService only sees a generic 
ResourceException with a 415 (Unsupported Media Type) status - the original 
exception is lost.

Is there any way to get the ConverterService to preserve the original 
deserailization exception so the StatusService can do something useful with it?

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

Reply via email to