protected void doReportProblem(XMLReporter rep, XMLValidationProblem prob)
throws XMLStreamException
{
if (rep != null) {
Location loc = prob.getLocation();
if (loc == null) {
loc = getLocation();
prob.setLocation(loc);
}
// Backwards-compatibility fix: add non-null type, if missing:
if (prob.getType() == null) {
prob.setType(ErrorConsts.WT_VALIDATION);
}
// [WSTX-154]: was catching and dropping thrown exception: shouldn't.
rep.report(prob.getMessage(), prob.getType(), prob, loc);
}
}
BaseStreamWriter.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:woodstox
作者:
评论列表
文章目录