gpt4 book ai didi

org.apache.commons.jelly.parser.XMLParser.createSAXException()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 13:35:05 27 4
gpt4 key购买 nike

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

XMLParser.createSAXException介绍

[英]Create a SAX exception which also understands about the location in the digester file where the exception occurs
[中]创建一个SAX异常,该异常还可以理解异常发生在摘要文件中的位置

代码示例

代码示例来源:origin: commons-jelly/commons-jelly

/**
   * Create a SAX exception which also understands about the location in
   * the digester file where the exception occurs
   *
   * @return the new exception
   */
  protected SAXException createSAXException(String message) {
    return createSAXException(message, null);
  }
}

代码示例来源:origin: org.jenkins-ci/commons-jelly

/**
   * Create a SAX exception which also understands about the location in
   * the digester file where the exception occurs
   *
   * @return the new exception
   */
  protected SAXException createSAXException(String message) {
    return createSAXException(message, null);
  }
}

代码示例来源:origin: org.jvnet.hudson/commons-jelly

/**
   * Create a SAX exception which also understands about the location in
   * the digester file where the exception occurs
   *
   * @return the new exception
   */
  protected SAXException createSAXException(String message) {
    return createSAXException(message, null);
  }
}

代码示例来源:origin: org.hudsonci.stapler/commons-jelly

/**
   * Create a SAX exception which also understands about the location in
   * the digester file where the exception occurs
   *
   * @return the new exception
   */
  protected SAXException createSAXException(String message) {
    return createSAXException(message, null);
  }
}

代码示例来源:origin: org.jenkins-ci/commons-jelly

/**
 * Create a SAX exception which also understands about the location in
 * the digester file where the exception occurs
 *
 * @return the new exception
 */
protected SAXException createSAXException(Exception e) {
  return createSAXException(e.getMessage(), e);
}
/**

代码示例来源:origin: commons-jelly/commons-jelly

/**
 * Create a SAX exception which also understands about the location in
 * the digester file where the exception occurs
 *
 * @return the new exception
 */
protected SAXException createSAXException(Exception e) {
  return createSAXException(e.getMessage(), e);
}
/**

代码示例来源:origin: org.jvnet.hudson/commons-jelly

/**
 * Create a SAX exception which also understands about the location in
 * the digester file where the exception occurs
 *
 * @return the new exception
 */
protected SAXException createSAXException(Exception e) {
  return createSAXException(e.getMessage(), e);
}
/**

代码示例来源:origin: org.hudsonci.stapler/commons-jelly

/**
 * Create a SAX exception which also understands about the location in
 * the digester file where the exception occurs
 *
 * @return the new exception
 */
protected SAXException createSAXException(Exception e) {
  return createSAXException(e.getMessage(), e);
}
/**

代码示例来源:origin: commons-jelly/commons-jelly

/**
 * Process notification that a namespace prefix is going out of scope.
 *
 * @param prefix Prefix that is going out of scope
 *
 * @exception SAXException if a parsing error is to be reported
 */
public void endPrefixMapping(String prefix) throws SAXException {
  // Deregister this prefix mapping
  ArrayStack stack = (ArrayStack) namespaces.get(prefix);
  if (stack == null) {
    return;
  }
  try {
    stack.pop();
    if (stack.empty()) {
      namespaces.remove(prefix);
    }
  }
  catch (EmptyStackException e) {
    throw createSAXException("endPrefixMapping popped too many times");
  }
}

代码示例来源:origin: org.jvnet.hudson/commons-jelly

/**
 * Process notification that a namespace prefix is going out of scope.
 *
 * @param prefix Prefix that is going out of scope
 *
 * @exception SAXException if a parsing error is to be reported
 */
public void endPrefixMapping(String prefix) throws SAXException {
  // Deregister this prefix mapping
  ArrayStack stack = (ArrayStack) namespaces.get(prefix);
  if (stack == null) {
    return;
  }
  try {
    stack.pop();
    if (stack.empty()) {
      namespaces.remove(prefix);
    }
  }
  catch (EmptyStackException e) {
    throw createSAXException("endPrefixMapping popped too many times");
  }
}

代码示例来源:origin: org.hudsonci.stapler/commons-jelly

/**
 * Process notification that a namespace prefix is going out of scope.
 *
 * @param prefix Prefix that is going out of scope
 *
 * @exception SAXException if a parsing error is to be reported
 */
public void endPrefixMapping(String prefix) throws SAXException {
  // Deregister this prefix mapping
  ArrayStack stack = (ArrayStack) namespaces.get(prefix);
  if (stack == null) {
    return;
  }
  try {
    stack.pop();
    if (stack.empty()) {
      namespaces.remove(prefix);
    }
  }
  catch (EmptyStackException e) {
    throw createSAXException("endPrefixMapping popped too many times");
  }
}

代码示例来源:origin: org.jvnet.hudson/commons-jelly

} catch (Exception e) {
  log.error( "Caught exception: " + e, e );
  throw createSAXException( "Runtime Exception: " + e, e );

代码示例来源:origin: org.jenkins-ci/commons-jelly

} catch (Exception e) {
  log.error( "Caught exception: " + e, e );
  throw createSAXException( "Runtime Exception: " + e, e );

代码示例来源:origin: org.hudsonci.stapler/commons-jelly

} catch (Exception e) {
  log.error( "Caught exception: " + e, e );
  throw createSAXException( "Runtime Exception: " + e, e );

代码示例来源:origin: org.jenkins-ci/commons-jelly

/**
 * Process notification that a namespace prefix is going out of scope.
 *
 * @param prefix Prefix that is going out of scope
 *
 * @exception SAXException if a parsing error is to be reported
 */
public void endPrefixMapping(String prefix) throws SAXException {
  // Deregister this prefix mapping
  ArrayStack stack = (ArrayStack) namespaces.get(prefix);
  if (stack == null) {
    return;
  }
  try {
    stack.pop();
    if (stack.empty()) {
      namespaces.remove(prefix);
    }
  }
  catch (EmptyStackException e) {
    throw createSAXException("endPrefixMapping popped too many times");
  }
}

代码示例来源:origin: org.jvnet.hudson/commons-jelly

/**
 * Factory method to create a static Tag that represents some static content.
 *
 * <p>
 * Note that to if you use jelly:define taglib, these tags might turn out to be non-static
 * during the runtime.
 */
protected TagScript createStaticTag(
  final String namespaceURI,
  final String localName,
  final String qName,
  Attributes list)
  throws SAXException {
  try {
    StaticTagScript script = new StaticTagScript();
    configureTagScript(script);
    configureStaticTagAttributes(script,list);
    return script;
  }
  catch (Exception e) {
    log.warn(
      "Could not create static tag for URI: "
        + namespaceURI
        + " tag name: "
        + localName,
      e);
    throw createSAXException(e);
  }
}

代码示例来源:origin: org.jenkins-ci/commons-jelly

/**
 * Factory method to create a static Tag that represents some static content.
 *
 * <p>
 * Note that to if you use jelly:define taglib, these tags might turn out to be non-static
 * during the runtime.
 */
protected TagScript createStaticTag(
  final String namespaceURI,
  final String localName,
  final String qName,
  Attributes list)
  throws SAXException {
  try {
    StaticTagScript script = new StaticTagScript();
    configureTagScript(script);
    configureStaticTagAttributes(script,list);
    return script;
  }
  catch (Exception e) {
    log.warn(
      "Could not create static tag for URI: "
        + namespaceURI
        + " tag name: "
        + localName,
      e);
    throw createSAXException(e);
  }
}

代码示例来源:origin: org.hudsonci.stapler/commons-jelly

/**
 * Factory method to create a static Tag that represents some static content.
 *
 * <p>
 * Note that to if you use jelly:define taglib, these tags might turn out to be non-static
 * during the runtime.
 */
protected TagScript createStaticTag(
  final String namespaceURI,
  final String localName,
  final String qName,
  Attributes list)
  throws SAXException {
  try {
    StaticTagScript script = new StaticTagScript();
    configureTagScript(script);
    configureStaticTagAttributes(script,list);
    return script;
  }
  catch (Exception e) {
    log.warn(
      "Could not create static tag for URI: "
        + namespaceURI
        + " tag name: "
        + localName,
      e);
    throw createSAXException(e);
  }
}

代码示例来源:origin: commons-jelly/commons-jelly

+ localName,
  e);
throw createSAXException(e);

代码示例来源:origin: org.jenkins-ci/commons-jelly

throw createSAXException( "Runtime Exception: " + e, e );

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com