public class DefaultErrorHandler extends Object implements ErrorHandler
| Constructor and Description |
|---|
DefaultErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
doDefault(ErrorEvent event) |
void |
error(ErrorEvent event)
Invoked when an error occurs.
|
static AbstractComponent |
findAbstractComponent(ErrorEvent event)
Returns the AbstractComponent associated with the given error if such can
be found
|
static Component |
findComponent(Connector connector)
Finds the nearest component by traversing upwards in the hierarchy.
|
static Throwable |
findRelevantThrowable(Throwable t)
Vaadin wraps exceptions in its own and due to reflection usage there
might be also other irrelevant exceptions that make no sense for Vaadin
users (~developers using Vaadin).
|
public void error(ErrorEvent event)
ErrorHandlererror in interface ErrorHandlerevent - the fired event.public static void doDefault(ErrorEvent event)
public static Throwable findRelevantThrowable(Throwable t)
t - a throwable passed to ErrorHandlerpublic static AbstractComponent findAbstractComponent(ErrorEvent event)
event - The error to investigateAbstractComponent to error relates to or null if
could not be determined or if the error does not relate to any
AbstractComponent.public static Component findComponent(Connector connector)
Component.Copyright © 2022 Vaadin Ltd. All rights reserved.