Example usage for com.fasterxml.jackson.core JsonParseException JsonParseException

List of usage examples for com.fasterxml.jackson.core JsonParseException JsonParseException

Introduction

In this page you can find the example usage for com.fasterxml.jackson.core JsonParseException JsonParseException.

Prototype

public JsonParseException(String msg, JsonLocation loc, Throwable root) 

Source Link

Usage

From source file:org.apache.olingo.client.core.edm.xml.annotation.DynamicAnnotationExpressionDeserializer.java

private AbstractElementOrAttributeExpression getElementOrAttributeExpressio(final String simpleClassName)
        throws JsonParseException {

    try {//from  w w  w.  j av a  2s. c  o m
        @SuppressWarnings("unchecked")
        Class<? extends AbstractElementOrAttributeExpression> elOrAttrClass = (Class<? extends AbstractElementOrAttributeExpression>) ClassUtils
                .getClass(getClass().getPackage().getName() + "." + simpleClassName + "Impl");
        return elOrAttrClass.newInstance();
    } catch (Exception e) {
        throw new JsonParseException("Could not instantiate " + simpleClassName, JsonLocation.NA, e);
    }
}