Package com.github.restdriver.exception

Examples of com.github.restdriver.exception.RuntimeMappingException


    public void setBody(byte[] json) {
        try {
            this.content = MAPPER.readTree(json);
           
        } catch (IOException e) {
            throw new RuntimeMappingException("Can't parse JSON.  Bad content >> " + new String(json).substring(0, PARSE_ERROR_EXCERPT_LENGTH) + "...", e);
           
        }
    }
View Full Code Here

TOP

Related Classes of com.github.restdriver.exception.RuntimeMappingException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.