public class AmbiguousRouteConfigurationException extends InvalidRouteConfigurationException
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Component> |
getConfiguredNavigationTarget()
Returns the already configured navigation target component class which
caused the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AmbiguousRouteConfigurationException(String message, Class<? extends Component> navigationTarget)
message - the detail message. The detail message is saved for later
retrieval by the Throwable.getMessage() method.navigationTarget - the configured navigation target, not nullpublic Class<? extends Component> getConfiguredNavigationTarget()
In case the exception happens as a result of a navigation target collision for the same route path this method returns the configured navigation target for the path.
nullCopyright © 2025. All rights reserved.