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