Class DuplicateRouteHandler
java.lang.Object
io.micronaut.http.server.exceptions.ErrorResponseProcessorExceptionHandler<DuplicateRouteException>
io.micronaut.http.server.exceptions.DuplicateRouteHandler
- All Implemented Interfaces:
ExceptionHandler<DuplicateRouteException,
HttpResponse<?>>
@Singleton
@Produces
public class DuplicateRouteHandler
extends ErrorResponseProcessorExceptionHandler<DuplicateRouteException>
Handles exceptions of type
DuplicateRouteException
.- Since:
- 1.0
- Author:
- James Kleeh
-
Field Summary
Fields inherited from class io.micronaut.http.server.exceptions.ErrorResponseProcessorExceptionHandler
responseProcessor
-
Constructor Summary
ConstructorDescriptionDuplicateRouteHandler
(ErrorResponseProcessor<?> responseProcessor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull MutableHttpResponse<?>
createResponse
(DuplicateRouteException exception) Methods inherited from class io.micronaut.http.server.exceptions.ErrorResponseProcessorExceptionHandler
handle
-
Constructor Details
-
DuplicateRouteHandler
Constructor.- Parameters:
responseProcessor
- Error Response Processor
-
-
Method Details
-
createResponse
@NonNull protected @NonNull MutableHttpResponse<?> createResponse(DuplicateRouteException exception) - Specified by:
createResponse
in classErrorResponseProcessorExceptionHandler<DuplicateRouteException>
-