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