Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
ServerRpc Errorhandling
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.
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
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.
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?