Class DuplicateRouteHandler
java.lang.Object
io.micronaut.http.server.exceptions.DuplicateRouteHandler
- All Implemented Interfaces:
ExceptionHandler<DuplicateRouteException,
HttpResponse>
@Singleton
@Produces
public class DuplicateRouteHandler
extends Object
implements ExceptionHandler<DuplicateRouteException,HttpResponse>
Handles exceptions of type
DuplicateRouteException
.- Since:
- 1.0
- Author:
- James Kleeh
-
Constructor Summary
ConstructorDescriptionDuplicateRouteHandler
(ErrorResponseProcessor<?> responseProcessor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionhandle
(HttpRequest request, DuplicateRouteException exception) Handles an exception and returns the result.
-
Constructor Details
-
DuplicateRouteHandler
Constructor.- Parameters:
responseProcessor
- Error Response Processor
-
-
Method Details
-
handle
Description copied from interface:ExceptionHandler
Handles an exception and returns the result.- Specified by:
handle
in interfaceExceptionHandler<DuplicateRouteException,
HttpResponse> - Parameters:
request
- The requestexception
- The exception type- Returns:
- The result
-