New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exceptions should not break a UI #801
Comments
I find this "new behaviour" really nasty for both application developers and end users. Even if the framework does nothing by default and just kills the UI, we should definitely have a hook for developers to catch "component errors" and let them handle and decide how that app behaves in such situations. |
For similar problematic error handling situation see also #4377 |
The UI still freezes in Vaadin 12.0.3 if an exception is thrown inside a textField.addValueChangeListener(e -> {
throw new RuntimeException();
}); I tested this with Flow version 1.2.3 and 1.3.0.alpha1. |
If exception happens in some event handler (f.e. as a reaction on some client-side event) then UI becomes broken because of internal error.
It's possible to install
ErrorHandler
viaVaadinSession.setErrorHandler
and be notified about exceptions but it's not possible to change UI since it becomes broken when an exception is thrown.UI should remain functional.
The text was updated successfully, but these errors were encountered: