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