Package eu.bandm.tools.tdom.runtime
Class TdomException
java.lang.Object
java.lang.Throwable
java.lang.Exception
eu.bandm.tools.tdom.runtime.TdomException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TdomAttributeException
,TdomContentException
,TdomXmlException
Signals that, when initializing a model instance,
a violation of the document type format occured, as it is defined by the DTD.
Raised out of several runtime classes and from the code generated for the model
elements' classes.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
static @Opt TdomException
Follow the chain of ".cause" entries until an instance of this class is found.void
void
void
setContextAndLocation
(TypedElement el, Locatable<?> loc) void
setContextAndLocation
(NamespaceName ns, Locatable<?> loc) void
setLocation
(Locatable<?> loc) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TdomException
-
-
Method Details
-
setLocation
-
setContext
-
setContext
-
setContextAndLocation
-
setContextAndLocation
-
getLocation
-
getContextElementNSName
-
contextString
-
extract
Follow the chain of ".cause" entries until an instance of this class is found. In many cases an instance of this class is wrapped in a Runtime Exception, or the tdom is called via reflection, thus wrapped in a InvocationTargetException, etc.- Returns:
- first found instance of (a subclass of) this class, or null if no such is found in the chain of ".cause" fields.
-