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