Nie można przechwycić wyjątku JsonMappingException
Mój IDE daje mi błądUnhandled Exception com.fasterxml.jackson.databind.JsonMappingException
zmapper.readValue
linia
ObjectMapper mapper = new ObjectMapper();
try {
if (response.isEmpty()) {
//Http 204 (No Content) returned from MCC
//We should handle this differently
user = new User();
} else {
user = mapper.readValue(response, User.class);
}
} catch (IOException ioe) {
logger.log(Level.SEVERE, ioe.getLocalizedMessage());
}
return user;
Próbowałem złapaćJsonMappingException
ale to nie sprawiło, że błąd zniknął. jakieś pomysły?