com.vaadin.flow.server.

Interface ErrorRouteRegistry

All Superinterfaces:

Serializable

All Known Implementing Classes:

ApplicationRouteRegistry

public interface ErrorRouteRegistry extends Serializable

Interface class for RouteRegistries that can be used to request for error navigation views for Exceptions.

Since:

  • Method Details

    • 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 for

      Returns:

      optional error target entry corresponding to the given exception