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