@Singleton @Primary @Produces public class DuplicateRouteHandler extends Object implements ExceptionHandler<DuplicateRouteException,HttpResponse>
DuplicateRouteException
.Constructor and Description |
---|
DuplicateRouteHandler() |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
handle(HttpRequest request,
DuplicateRouteException exception)
Handles an exception and returns the result.
|
public HttpResponse handle(HttpRequest request, DuplicateRouteException exception)
ExceptionHandler
handle
in interface ExceptionHandler<DuplicateRouteException,HttpResponse>
request
- The requestexception
- The exception type