Class ConversionErrorHandler
java.lang.Object
io.micronaut.http.server.exceptions.ConversionErrorHandler
- All Implemented Interfaces:
ExceptionHandler<ConversionErrorException,
HttpResponse>
@Singleton
@Produces
public class ConversionErrorHandler
extends Object
implements ExceptionHandler<ConversionErrorException,HttpResponse>
Handles exception of type
ConversionErrorException
.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Constructor Summary
ConstructorDescriptionConversionErrorHandler
(ErrorResponseProcessor<?> responseProcessor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionhandle
(HttpRequest request, ConversionErrorException exception) Handles an exception and returns the result.
-
Constructor Details
-
ConversionErrorHandler
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<ConversionErrorException,
HttpResponse> - Parameters:
request
- The requestexception
- The exception type- Returns:
- The result
-