Class 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 to
      java.lang.Object getBadNode()
      Answer 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UnsupportedPolymorphismException

        public 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 Detail

      • getBadClass

        public java.lang.Class<?> getBadClass()
        Answer the class that the node couldn't be polymorphed to
      • getBadNode

        public java.lang.Object getBadNode()
        Answer the node that couldn't be polymorphed.