I implemented a custom widget and it does calls via a ServerRPC implementation. This works all good.
I wanted to know how I should implement errorhandling, because I need the sent messages to be redelivered in case of an error.
I pretty much followed this chapter in the book: https://vaadin.com/book/vaadin7/-/page/gwt.rpc.html
Any help is appreciated.
Kurki
(Teppo Kurki)
June 9, 2015, 1:39pm
2
Hi,
not sure I understood. Could you please describe the error case(s) you want to handle in a bit more detail?
-tepi
Hi
I am thinking mainly of network failures (timeouts, network down, etc.) but also Unexpected exceptions on the server side.
How can I handle that? Or is there an onError Callback?
Kind regards
Christian
Johannes13
(Johannes Dahlström)
June 10, 2015, 9:34am
4
Hi Christian,
Currently if any Vaadin client-to-server AJAX request fails the result is a critical notification and the page has to be reloaded. We’re currently working on a much
improved error handling
for Vaadin 7.6.
Christian71
(Christian Sterzl)
June 10, 2015, 10:18am
5
So there is no possibility to get immediately feedback when a request fails like in gwt rpc with com.google.gwt.user.client.rpc.AsyncCallback?