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, toString
public 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 null
public 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.
null
Copyright © 2020. All rights reserved.