com.vaadin.flow.router.internal.
Class ErrorTargetEntry
- java.lang.Object
-
- com.vaadin.flow.router.internal.ErrorTargetEntry
-
All Implemented Interfaces:
public class ErrorTargetEntry extends Object implements Serializable
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
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
-
-