java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.jena.shared.JenaException
org.apache.jena.enhanced.UnsupportedPolymorphismException
- All Implemented Interfaces:
Serializable
Exception to throw if an enhanced graph does not support polymorphism
to a specific class. The exception records the "bad" class and node for
later reporting.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnsupportedPolymorphismException
(Object node, boolean hasModel, Class<?> type) Initialise this exception with the node that couldn't be polymorphed and the class it couldn't be polymorphed to. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
Answer the class that the node couldn't be polymorphed toAnswer the node that couldn't be polymorphed.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsupportedPolymorphismException
Initialise this exception with the node that couldn't be polymorphed and the class it couldn't be polymorphed to.
-
-
Method Details
-
getBadClass
Answer the class that the node couldn't be polymorphed to -
getBadNode
Answer the node that couldn't be polymorphed.
-