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