|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.axiom.om.OMException
org.apache.axiom.om.OMHierarchyException
public class OMHierarchyException
Thrown if an object model operation would lead to a hierarchy that is not allowed in the given object model implementation.
If this exception is encountered by a builder when creating an OM node from an event received
by the parser and if the corresponding content can be ignored (i.e. is not semantically
relevant), the builder should ignore the exception and skip the event. An example is whitespace
appearing before or after the root element of a document. This would be represented as an
OMText
node below the OMDocument
. If the OM implementation doesn't allow text
nodes as children of a document (as for example in DOM), it should throw this exception so
that the builder can discard the event.
Constructor Summary | |
---|---|
OMHierarchyException(java.lang.String message)
|
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OMHierarchyException(java.lang.String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |