InvalidElementException Class
- public class InvalidElementException
extends Exception
An InvalidElementException is thrown by the two-way editing methods when a two-way edit is performed on an element
that is not part of a valid parse tree. Calling ISourceElement.getStatus
on an
element before attempting a two-way edit is one way to reduce the occurences of this exception. Note that it is not
possible to prevent this exception in all cases. For example, this exception is unavoidable if a two-way edit is
initiated on a valid element while the compiler is processing a change that will remove that element from the tree.
-
Hierarchy
-
Object
Throwable
Exception
InvalidElementException
-
All Implemented Interfaces
-
Serializable
Methods from java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InvalidElementException
public InvalidElementException(String
str,
ISourceElement
el)
getElement() Method
public ISourceElement
getElement()
Returns the invalid element that caused this exception.
toString() Method
public String
toString()
-
Overrides
-
Throwable.toString()