@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)
ExceptionHandler
handle
in interface ExceptionHandler<HttpStatusException,HttpResponse>
request
- The requestexception
- The exception type