Class DuplicateRouteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.context.exceptions.BeanContextException
io.micronaut.web.router.exceptions.RoutingException
io.micronaut.web.router.exceptions.DuplicateRouteException
- All Implemented Interfaces:
Serializable
An exception thrown when multiple routes match a given URI.
- Since:
- 1.0
- Author:
- James Kleeh
- See Also:
-
Constructor Summary
ConstructorDescriptionDuplicateRouteException
(String uri, List<UriRouteMatch<Object, Object>> uriRoutes) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DuplicateRouteException
- Parameters:
uri
- The URIuriRoutes
- The routes
-
-
Method Details
-
getUri
- Returns:
- The uri
-
getUriRoutes
- Returns:
- The routes which caused this exception
-