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