com.ctc.wstx.exc.WstxParsingException.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(83)

本文整理了Java中com.ctc.wstx.exc.WstxParsingException.<init>()方法的一些代码示例,展示了WstxParsingException.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WstxParsingException.<init>()方法的具体详情如下:
包路径:com.ctc.wstx.exc.WstxParsingException
类名称:WstxParsingException
方法名:<init>

WstxParsingException.<init>介绍

暂无

代码示例

代码示例来源: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: 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());
}

代码示例来源:origin: Nextdoor/bender

protected void reportXmlProblem(String msg)
  throws WstxException
{
  throw new WstxParsingException(msg, getLocation());
}

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

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-lgpl

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

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: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

public static void throwNotationException(NotationDecl oldDecl, NotationDecl newDecl)
  throws XMLStreamException
{
  throw new WstxParsingException
    (MessageFormat.format(ErrorConsts.ERR_DTD_NOTATION_REDEFD,
               new Object[] {
               newDecl.getName(),
               oldDecl.getLocation().toString()}),
     newDecl.getLocation());
}

相关文章

WstxParsingException类方法