You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
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 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 for

        Returns:

        optional error target entry corresponding to the given exception