com.hp.hpl.jena.enhanced
Class UnsupportedPolymorphismException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.hp.hpl.jena.shared.JenaException
                  extended by com.hp.hpl.jena.enhanced.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 graph for later reporting.

See Also:
Serialized Form

Constructor Summary
UnsupportedPolymorphismException(EnhGraph eg, Class cl)
           
 
Method Summary
 Class getBadClass()
           
 EnhGraph getBadGraph()
           
 
Methods inherited from class com.hp.hpl.jena.shared.JenaException
getCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsupportedPolymorphismException

public UnsupportedPolymorphismException(EnhGraph eg,
                                        Class cl)
Method Detail

getBadGraph

public EnhGraph getBadGraph()
Returns:
the graph that did not support the desired polymorphism

getBadClass

public Class getBadClass()
Returns:
the class that the graph had no implementation for


Copyright © 2000, 2001, 2002, 2003, 2004 Hewlett-Packard Development Company, LP