Package org.apache.jena.enhanced
Class UnsupportedPolymorphismException
- 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:
java.io.Serializable
public class UnsupportedPolymorphismException extends JenaException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnsupportedPolymorphismException(java.lang.Object node, boolean hasModel, java.lang.Class<?> type)
Initialise this exception with the node that couldn't be polymorphed and the class it couldn't be polymorphed to.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getBadClass()
Answer the class that the node couldn't be polymorphed tojava.lang.Object
getBadNode()
Answer the node that couldn't be polymorphed.
-