Class UnsupportedPolymorphismException

All Implemented Interfaces:
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:
  • Constructor Details

    • UnsupportedPolymorphismException

      public UnsupportedPolymorphismException(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 Details

    • getBadClass

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

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