Loading...
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.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Handling uncaught exceptions

Daryl Stultz
9 years ago May 07, 2012 3:49pm

Hello,

I need a way to handle all uncaught exceptions and present a custom UI in response. The Vaadin Book here gives an example for V6. It uses getMainWindow() which does not apply to V7. What is the proper way to catch all exceptions and present a custom feedback component?

Thanks.

/Daryl

Last updated on May, 7th 2012
Leif Åstrand
9 years ago May 08, 2012 6:57am
Daryl Stultz
9 years ago May 08, 2012 12:35pm
Leif Åstrand
9 years ago May 09, 2012 6:58am
Daryl Stultz
9 years ago May 09, 2012 6:14pm
Herman Bovens
9 years ago Oct 03, 2012 12:19pm
Alexander Fedorov
9 years ago Oct 09, 2012 12:11pm

Same question.

Artur Signell
9 years ago Oct 09, 2012 1:17pm

The same thing can be done in Vaadin 7 using VaadinServiceSession.setErrorHandler

Last updated on Oct, 9th 2012
Mike Pilone
9 years ago Nov 15, 2012 1:46pm
Henri Sara
9 years ago Nov 29, 2012 8:33am
Alejandro Duarte
8 years ago Jul 20, 2013 4:30pm
Ralph McNeal
8 years ago Sep 10, 2013 6:13pm

handleExceptionDuringRequest method in VaadinService does not allow the errorHandler to handle the request. After calling errorHandler.error(new ErrorEvent(t));, a ServiceException is still thrown. This does not allow the handler to prevent an exception being thrown to the client. Is this a bug?

Johannes Dahlström
8 years ago Sep 13, 2013 2:27pm
Ben Mapleton
7 years ago Mar 10, 2015 5:14pm
Ben Mapleton
7 years ago Mar 10, 2015 5:30pm
Luboš Račanský
6 years ago Sep 04, 2015 1:02pm
Marius Reinwald
6 years ago Sep 04, 2015 8:23pm
Archie Cobbs
3 years ago May 23, 2018 9:58pm
Tullio Bettinazzi
3 years ago Jul 14, 2018 1:47pm