We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.server.
Interface ErrorRouteRegistry
-
All Superinterfaces:
All Known Implementing Classes:
public interface ErrorRouteRegistry extends Serializable
Interface class for RouteRegistries that can be used to request for error navigation views for Exceptions.
Since:
-
-
Method Summary
All Methods Modifier and Type Method Description Optional<ErrorTargetEntry>
getErrorNavigationTarget​(Exception exception)
Get a registered navigation target for given exception.
-
-
-
Method Detail
-
getErrorNavigationTarget
Optional<ErrorTargetEntry> getErrorNavigationTarget​(Exception exception)
Get a registered navigation target for given exception. First we will search for a matching cause for in the exception chain and if no match found search by extended type.
Parameters:
exception
- exception to search error view forReturns:
optional error target entry corresponding to the given exception
-
-