Top Description Fields Constructors Methods
org.apache.tools.ant

public Class UnsupportedElementException

extends BuildException
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
private final String
private static final long

Constructor Summary

AccessConstructor and Description
public
UnsupportedElementException(String
The string containing the message.
msg
,
String
The name of the incorrect element.
element
)

Constructs an unsupported element exception.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the element name.
getElement
()

Get the element that is wrong.

Inherited from org.apache.tools.ant.BuildException:
getExceptiongetLocationofsetLocationtoString

Field Detail

elementback to summary
private final String element
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.tools.ant.BuildException.serialVersionUID.

Constructor Detail

UnsupportedElementExceptionback to summary
public UnsupportedElementException(String msg, String element)

Constructs an unsupported element exception.

Parameters
msg:String

The string containing the message.

element:String

The name of the incorrect element.

Method Detail

getElementback to summary
public String getElement()

Get the element that is wrong.

Returns:String

the element name.