Code example for ParseException

Methods: getErrorOffset, getMessage

0
            throw new RuntimeException("failed to create property '" + fullName + "': " +
                                       e.getMessage(),
                                       e);
        } catch (ParseException e) {
            throw new RuntimeException("failed to parse property '" + fullName +
                                       "': position " + e.getErrorOffset() + ": " +
                                       e.getMessage(),
                                       e);
        } 
    } 
 
    public static Property createChildProperty(final Class parentType, String name) {
        if (Property.UNKNOWN_TYPE.equals(parentType)) {
            return new GenericProperty(name);
        } 
        final BeanProperty beanProperty = createBeanProperty(parentType, name);
        if (beanProperty != null) {
            return beanProperty;
        } 
        if (Map.class.isAssignableFrom(parentType)) {
            return new MapProperty(name);