@ControllerAdvice public class JsonExceptionMapper extends Object
Constructor and Description |
---|
JsonExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<Object> |
toResponse(Exception exception) |
public JsonExceptionMapper()
@ExceptionHandler(value={com.fasterxml.jackson.databind.JsonMappingException.class,com.fasterxml.jackson.core.JsonParseException.class,com.fasterxml.jackson.core.JsonProcessingException.class,com.fasterxml.jackson.databind.RuntimeJsonMappingException.class}) public org.springframework.http.ResponseEntity<Object> toResponse(Exception exception)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.