ErrorHandler

How work with setErrorHandler

VaadinSession.getCurrent().setErrorHandler((ErrorHandler) event -> {
	log.error(event.getThrowable().getMessage());
	new Notification(event.getThrowable().getMessage(), backOfficeProperty.getNotification().getDelay(),
			Position.TOP_END).open();
});

Then in code I call RuntimeErrorException
But errorhandler don’t work

Link https://vaadin.com/forum/thread/17375395/errorhandler