Error is logged. Notification appears in Vaadin 8, but doesn’t appear in Vaadin 10. System message (see attachment) appears instead.
What’s wrong ? How to replace system message with a custom one ?
protected open fun newErrorHandler(): (ErrorEvent) -> Unit = { e: ErrorEvent ->
log.error("Vaadin UI uncaught exception ${e.throwable}", e.throwable)
Notification.show("Oops: An error occurred, and we are really sorry about that. Already working on the fix!", 5000, Notification.Position.TOP_CENTER)
}
Thank you.
vaadin-spring-boot-starter still depends on vaadin-flow 1.0.5, so I have added dependencies on vaadin-flow 1.1.0 directly and my notification starts to appear.