Class UnsupportedElementException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.tools.ant.BuildException
org.apache.tools.ant.UnsupportedElementException
- All Implemented Interfaces:
Serializable
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnsupportedElementException(String msg, String element) Constructs an unsupported element exception. -
Method Summary
Methods inherited from class BuildException
getException, getLocation, of, setLocation, toStringModifier and TypeMethodDescriptionDeprecated.Returns the file location where the error occurred.static BuildExceptionGet aBuildExceptionfor the specifiedThrowable.voidsetLocation(Location location) Sets the file location where the error occurred.toString()Returns the location of the error and the error message.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
UnsupportedElementException
-
-
Method Details
-
getElement
-
Throwable.getCause()instead.