com.vaadin.flow.router.internal.
Package com.vaadin.flow.router.internal
Class ErrorTargetEntry
java.lang.Object
com.vaadin.flow.router.internal.ErrorTargetEntry
All Implemented Interfaces:
A pair of a navigation target for handling exceptions and the exception type handled by the navigation target.
For internal use only. May be renamed or removed in a future release.
Since:
1.3
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionErrorTargetEntry
(Class<? extends Component> navigationTarget, Class<? extends Exception> handledExceptionType) Creates a new new entry with the given navigation target type and exception type.
-
Method Summary
Modifier and TypeMethodDescriptionGets the exception type handled by the navigation target.
Gets the navigation target type.
-
Constructor Details
-
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
-
-
Method Details
-
getHandledExceptionType
Gets the exception type handled by the navigation target.
Returns:
the exception type, not
null