FileDocCategorySizeDatePackage
UnsupportedElementException.javaAPI DocApache Ant 1.701928Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant

UnsupportedElementException

public class UnsupportedElementException extends BuildException
Used to report attempts to set an unsupported element When the attempt to set the element is made, the code does not not know the name of the task/type based on a mapping from the classname to the task/type. However one class may be used by a lot of task/types. This exception may be caught by code that does know the task/type and it will reset the message to the correct message. This will be done once (in the case of a recursive call to handlechildren).
since
Ant 1.6.3

Fields Summary
private String
element
Constructors Summary
public UnsupportedElementException(String msg, String element)
Constructs an unsupported element exception.

param
msg The string containing the message.
param
element The name of the incorrect element.

        super(msg);
        this.element = element;
    
Methods Summary
public java.lang.StringgetElement()
Get the element that is wrong.

return
the element name.

        return element;