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