APISonar


com.geccocrawler.gecco.spider.render.FieldRenderException.log

> com > geccocrawler > gecco > spider > render > FieldRenderException > log
com APIs geccocrawler APIs gecco APIs spider APIs render APIs FieldRenderException APIs log APIs

Example 1
private Object objectRender(Object src, Field field, String jsonPath, Object json) {
		if (src == null) {
			//throw new FieldRenderException(field, jsonPath + " not found in : " + json);
			FieldRenderException.log(field, jsonPath + " not found in : " + json);
		}
		try {
			return Conversion.getValue(field.getType(), src);
		} catch (Exception ex) {
			//throw new FieldRenderException(field, "Conversion error : " + src, ex);
			FieldRenderException.log(field, "Conversion error : " + src, ex);
		}
		return null;
	}