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