unsupportedattributeexception.java

来自「MoMEUnit是一个单元测试的J2ME的应用程序xUnit架构实例。这是来自J」· Java 代码 · 共 49 行

JAVA
49
字号
package org.momeunit.ant.taskdefs;/** * Exception thrown when unsupported attribute is encountered. *  * @author Sergio Morozov * @version 1.1.2 */public class UnsupportedAttributeException extends    org.apache.tools.ant.UnsupportedAttributeException{  private static final long serialVersionUID = 2206821955512459883L;  /**   * Name of element that doesn't support offending attribute.   */  private String element;  /**   * Instantiates UnsupportedAttributeException with given offending attribute   * and super element.   *    * @param attribute   *          name of unsupported attribute.   * @param element   *          name of element that doesn't support offending attribute.   * @since 1.1   */  public UnsupportedAttributeException(String attribute, String element)  {    super("The <" + (element != null ? element : "unknown")        + "> type doesn't support the \""        + (attribute != null ? attribute : "unknown") + "\" attribute.",        attribute);    this.element = element;  }  /**   * Returns name of element that doesn't support offending attribute.   *    * @return name of element that doesn't support offending attribute.   * @since 1.1   */  public String getSuperElement()  {    return element;  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?