Package com.vaadin.flow.server
Class AmbiguousRouteConfigurationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.vaadin.flow.server.InvalidRouteConfigurationException
com.vaadin.flow.server.AmbiguousRouteConfigurationException
- All Implemented Interfaces:
Serializable
Exception indicating that the application's routes already has the navigation
target with the given path.
- Since:
- 1.4
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAmbiguousRouteConfigurationException
(String message, Class<? extends Component> navigationTarget) Constructs a new invalid route configuration exception with the specified detail message and the existing navigation target component which already presents in the configuration with the route path. -
Method Summary
Modifier and TypeMethodDescriptionReturns the already configured navigation target component class which caused the exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AmbiguousRouteConfigurationException
public AmbiguousRouteConfigurationException(String message, Class<? extends Component> navigationTarget) Constructs a new invalid route configuration exception with the specified detail message and the existing navigation target component which already presents in the configuration with the route path.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.navigationTarget
- the configured navigation target, notnull
-
-
Method Details