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