Class URISyntaxHandler
java.lang.Object
io.micronaut.http.server.exceptions.URISyntaxHandler
- All Implemented Interfaces:
ExceptionHandler<URISyntaxException,HttpResponse>
@Singleton
@Produces
public class URISyntaxHandler
extends Object
implements ExceptionHandler<URISyntaxException,HttpResponse>
Handles exception of type
URISyntaxException.- Since:
- 2.0
- Author:
- Graeme Rocher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandle(HttpRequest request, URISyntaxException exception) Handles an exception and returns the result.
-
Constructor Details
-
URISyntaxHandler
Constructor.- Parameters:
responseProcessor- Error Response Processor
-
-
Method Details
-
handle
Description copied from interface:ExceptionHandlerHandles an exception and returns the result.- Specified by:
handlein interfaceExceptionHandler<URISyntaxException,HttpResponse> - Parameters:
request- The requestexception- The exception type- Returns:
- The result
-