Example usage for com.fasterxml.jackson.databind JsonMappingException getLocalizedMessage

List of usage examples for com.fasterxml.jackson.databind JsonMappingException getLocalizedMessage

Introduction

In this page you can find the example usage for com.fasterxml.jackson.databind JsonMappingException getLocalizedMessage.

Prototype

public String getLocalizedMessage() 

Source Link

Usage

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;
}