com.vaadin.flow.server.startup.
Class RouteRegistry.ErrorTargetEntry
- java.lang.Object
-
- com.vaadin.flow.server.startup.RouteRegistry.ErrorTargetEntry
-
All Implemented Interfaces:
Enclosing class:
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:
-
-
Constructor Summary
Constructors Constructor and Description ErrorTargetEntry(Class<? extends Component> navigationTarget, Class<? extends Exception> handledExceptionType)
Creates a new new entry with the given navigation target type and exception type.
-
Method Summary
All Methods Modifier and Type Method and Description Class<? extends Exception>
getHandledExceptionType()
Gets the exception type handled by the navigation target.
Class<? extends Component>
getNavigationTarget()
Gets the navigation target type.
-
-
-
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, notnull
handledExceptionType
- the exception type handled by the navigation target, notnull
-
-