@Singleton @Produces public class UnsatisfiedRouteHandler extends java.lang.Object implements ExceptionHandler<UnsatisfiedRouteException,HttpResponse>
UnsatisfiedRouteException
.Constructor and Description |
---|
UnsatisfiedRouteHandler()
Deprecated.
Use
UnsatisfiedRouteHandler(ErrorResponseProcessor) instead. |
UnsatisfiedRouteHandler(ErrorResponseProcessor<?> responseProcessor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
handle(HttpRequest request,
UnsatisfiedRouteException exception)
Handles an exception and returns the result.
|
@Deprecated public UnsatisfiedRouteHandler()
UnsatisfiedRouteHandler(ErrorResponseProcessor)
instead.@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