com.vaadin.flow.server.startup.

Class RouteRegistry.ErrorTargetEntry

  • java.lang.Object
    • com.vaadin.flow.server.startup.RouteRegistry.ErrorTargetEntry
  • All Implemented Interfaces:

    Serializable

    Enclosing class:

    RouteRegistry


    public static class RouteRegistry.ErrorTargetEntry
    extends Object
    implements Serializable

    A pair of a navigation target for handling exceptions and the exception type handled by the navigation target.

    See Also:

    Serialized Form

    • Constructor Detail

      • ErrorTargetEntry

        public ErrorTargetEntry(Class<? extends Component> navigationTarget,
                                Class<? extends Exception> handledExceptionType)

        Creates a new new entry with the given navigation target type and exception type.

        Parameters:

        navigationTarget - the navigation target type, not null

        handledExceptionType - the exception type handled by the navigation target, not null

    • Method Detail

      • getNavigationTarget

        public Class<? extends Component> getNavigationTarget()

        Gets the navigation target type.

        Returns:

        the navigation target type, not null

      • getHandledExceptionType

        public Class<? extends Exception> getHandledExceptionType()

        Gets the exception type handled by the navigation target.

        Returns:

        the exception type, not null