本文整理了Java中org.json.simple.parser.ParseException.toString()
方法的一些代码示例,展示了ParseException.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ParseException.toString()
方法的具体详情如下:
包路径:org.json.simple.parser.ParseException
类名称:ParseException
方法名:toString
暂无
代码示例来源:origin: apache/storm
LOG.error("Failed to parse component resources is:" + e.toString(), e);
return null;
代码示例来源:origin: apache/storm
LOG.error("Failed to parse component resources is:" + e.toString(), e);
return null;
代码示例来源:origin: SmartDataAnalytics/DL-Learner
@NotNull
protected Map parseJson() throws ComponentInitException {
JSONObject ret = new JSONObject();
JSONParser parser = new JSONParser();
Object parse = null;
try {
parse = parser.parse(new InputStreamReader(inputStream), new InsertionOrderedContainerFactory());
} catch (org.json.simple.parser.ParseException e) {
throw new ComponentInitException(e.toString(), e);
} catch (IOException e) {
throw new ComponentInitException(e);
}
logger.trace("parse was: " + parse.toString());
if (!(parse instanceof Map)) {
throw new ComponentInitException("Not a JSON object: " + parse.getClass());
}
return (Map) parse;
}
代码示例来源:origin: aerospike/aerospike-loader
log.error("File: " + Utils.getFileName(configFile.getName()) + " Config parsing Error: " + pe.toString());
if (log.isDebugEnabled()) {
pe.printStackTrace();
代码示例来源:origin: RUB-NDS/BurpSSOExtension
} catch (ParseException ex){
JOptionPane.showMessageDialog(this,
"The content can not be parsed!\n\nError:\n"+ex.toString(),
"JSON Parsing Error",
JOptionPane.ERROR_MESSAGE);
内容来源于网络,如有侵权,请联系作者删除!