List of usage examples for com.fasterxml.jackson.databind JsonMappingException getLocalizedMessage
public String getLocalizedMessage()
From source file:org.jboss.pnc.environment.docker.DockerEnvironmentDriverRemoteTest.java
static private Map<String, Object> getJSONFromString(String str) { Map<String, Object> result = new HashMap<String, Object>(); try {//from www . j av a 2 s . c o m result = (Map<String, Object>) new ObjectMapper().readValue(str, Map.class); } catch (JsonMappingException jme) { logger.error("Error while converting container JSON to Map - " + jme.getLocalizedMessage()); } catch (IOException ioe) { logger.error("Error while converting container JSON to Map - " + ioe.getLocalizedMessage()); } return result; }