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