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