Restlet 2.3 introduced annotated exceptions, but this user-defined exception
isn't delivered to GWT clients. The GWT client only receives the status
code.
This is because of the ClientProxyGenerator implementation;
public void postLocation(LocationDto param1, final LocationDto> callback)
{
...
public void handle(Request request, Response response)
{
if (getClientResource().getStatus().isError())
{
callback.onFailure(new
ResourceException(getClientResource().getStatus()));
}
else
{
...
}
In this post Thierry Templier describes it is possible to use annotated
exceptions towards clients;
http://restlet.com/company/blog/2015/12/21/exception-handling-with-restlet-framework/
Is it possible to use this technique in the GWT implementations (enabling
user-defined exception with Restlet and GWT)?
See also my post on this subject at stackoverflow;
https://stackoverflow.com/questions/45505340/receive-custom-exceptions-from-restlet-framework-in-gwt-client
Regards,
Roland Beuker
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/Receive-custom-exceptions-from-Restlet-Framework-in-GWT-client-tp7579493.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3281366