本文整理了Java中com.ctc.wstx.exc.WstxParsingException
类的一些代码示例,展示了WstxParsingException
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WstxParsingException
类的具体详情如下:
包路径:com.ctc.wstx.exc.WstxParsingException
类名称:WstxParsingException
[英]Intermediate base class for reporting actual Wstx parsing problems.
[中]用于报告实际Wstx解析问题的中间基类。
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
protected void reportProblem(String msg, Location loc)
throws XMLStreamException
{
throw new WstxParsingException(msg, loc);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
protected void throwStreamException(String msg, Location loc)
throws XMLStreamException
{
if (loc == null) {
throw new WstxParsingException(msg);
}
throw new WstxParsingException(msg, loc);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
protected void reportXmlProblem(String msg)
throws WstxException
{
throw new WstxParsingException(msg, getLocation());
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
protected WstxException constructWfcException(String msg)
{
return new WstxParsingException(msg, getLastCharLocation());
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
private final void reportPseudoAttrProblem(String attrName, String got,
String expVal1, String expVal2)
throws WstxException
{
String expStr = (expVal1 == null) ? "" :
("; expected \""+expVal1+"\" or \""+expVal2+"\"");
if (got == null || got.length() == 0) {
throw new WstxParsingException("Missing XML pseudo-attribute '"+attrName+"' value"+expStr,
getLocation());
}
throw new WstxParsingException("Invalid XML pseudo-attribute '"+attrName+"' value "+got+expStr,
getLocation());
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public static void throwElementException(DTDElement oldElem, Location loc)
throws XMLStreamException
{
throw new WstxParsingException
(MessageFormat.format(ErrorConsts.ERR_DTD_ELEM_REDEFD,
new Object[] {
oldElem.getDisplayName(),
oldElem.getLocation().toString() }),
loc);
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public static void throwNotationException(NotationDeclaration oldDecl, NotationDeclaration newDecl)
throws XMLStreamException
{
throw new WstxParsingException
(MessageFormat.format(ErrorConsts.ERR_DTD_NOTATION_REDEFD,
new Object[] {
newDecl.getName(),
oldDecl.getLocation().toString()}),
newDecl.getLocation());
}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
protected void reportProblem(String msg, Location loc)
throws XMLStreamException
{
if (loc == null) {
throw new WstxParsingException(msg);
}
throw new WstxParsingException(msg, loc);
}
代码示例来源:origin: woodstox/wstx-asl
protected void throwParseError(String msg, Location loc)
throws XMLStreamException
{
throw new WstxParsingException(msg, loc);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl
protected void reportProblem(String msg, Location loc)
throws XMLStreamException
{
throw new WstxParsingException(msg, loc);
}
}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
@Override
protected void throwStreamException(String msg, Location loc)
throws XMLStreamException
{
if (loc == null) {
throw new WstxParsingException(msg);
}
throw new WstxParsingException(msg, loc);
}
}
代码示例来源:origin: Nextdoor/bender
@Override
protected void reportProblem(String msg, Location loc)
throws XMLStreamException
{
throw new WstxParsingException(msg, loc);
}
}
代码示例来源:origin: Nextdoor/bender
@Override
protected void throwStreamException(String msg, Location loc)
throws XMLStreamException
{
if (loc == null) {
throw new WstxParsingException(msg);
}
throw new WstxParsingException(msg, loc);
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
protected void throwParseError(String msg, Location loc)
throws XMLStreamException
{
throw new WstxParsingException(msg, loc);
}
}
代码示例来源:origin: woodstox/wstx-lgpl
protected void throwParseError(String msg, Location loc)
throws XMLStreamException
{
throw new WstxParsingException(msg, loc);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl
protected void throwStreamException(String msg, Location loc)
throws XMLStreamException
{
if (loc == null) {
throw new WstxParsingException(msg);
}
throw new WstxParsingException(msg, loc);
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
protected void reportXmlProblem(String msg)
throws WstxException
{
throw new WstxParsingException(msg, getLocation());
}
代码示例来源:origin: woodstox/wstx-asl
protected void reportXmlProblem(String msg)
throws WstxException
{
throw new WstxParsingException(msg, getLocation());
}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
protected void reportXmlProblem(String msg)
throws WstxException
{
throw new WstxParsingException(msg, getLocation());
}
代码示例来源:origin: woodstox/wstx-asl
private void throwParseError(String msg)
throws WstxParsingException
{
throw new WstxParsingException(msg, getLastCharLocation());
}
内容来源于网络,如有侵权,请联系作者删除!