Package eu.bandm.tools.tdom.runtime
Class TdomContentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
eu.bandm.tools.tdom.runtime.TdomException
eu.bandm.tools.tdom.runtime.TdomContentException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TdomContentEndException
Signals that, when initializing a model instance,
a sequence of elements or nodes does not match the content
model defined for the currently parsed element.
Raised out of
TypedElement
and from the code generated for the elements' classes.- See Also:
-
Constructor Summary
ConstructorDescriptionTdomContentException
(@Opt Locatable<?> loc, @Opt NamespaceName offendingTag) TdomContentException
(@Opt Locatable<?> loc, @Opt NamespaceName offendingTag, int offendingPosition) -
Method Summary
Modifier and TypeMethodDescriptionint
Methods inherited from class eu.bandm.tools.tdom.runtime.TdomException
contextString, extract, getContextElementNSName, getLocation, setContext, setContext, setContextAndLocation, setContextAndLocation, setLocation
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TdomContentException
- Parameters:
offendingTag
- ==null means: offending PCData !
-
TdomContentException
-
-
Method Details
-
getOffendingTag
-
getOffendingPosition
public int getOffendingPosition() -
getMessage
- Overrides:
getMessage
in classThrowable
-