Class JacksonExceptionHandler
java.lang.Object
io.micronaut.http.server.exceptions.JacksonExceptionHandler
- All Implemented Interfaces:
ExceptionHandler<tools.jackson.core.JacksonException, Object>
@Produces
@Singleton
@Requires(classes=tools.jackson.core.JacksonException.class)
@Internal
public final class JacksonExceptionHandler
extends Object
implements ExceptionHandler<tools.jackson.core.JacksonException, Object>
Default exception handler for jackson processing errors.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionJacksonExceptionHandler(ErrorResponseProcessor<?> responseProcessor) Constructor. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ExceptionHandler
handle
-
Constructor Details
-
JacksonExceptionHandler
Constructor.- Parameters:
responseProcessor- Error Response Processor
-
-
Method Details
-
handle
public Object handle(io.micronaut.http.HttpRequest request, tools.jackson.core.JacksonException exception) Description copied from interface:ExceptionHandlerHandles an exception and returns the result.- Specified by:
handlein interfaceExceptionHandler<E extends Exception, Object>- Parameters:
request- The requestexception- The exception type- Returns:
- The result
-