com.hp.hpl.jena.rdf.model
Class EmptyListUpdateException

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.rdf.model.EmptyListUpdateException
All Implemented Interfaces:
Serializable

public class EmptyListUpdateException
extends JenaException

Exception that is thrown when an attept is made to perform a side-effectful operation on an RDFList that is the empty list, or rdf:nil. This is not permissible, since it would cause the URI of the RDFList to change from rdf:nil to a new bNode, and in Jena the URI of a node is invariant. To avoid this operation, when extending an empty list use operations that return the updated list (such as RDFList.cons(com.hp.hpl.jena.rdf.model.RDFNode), or RDFList.with(com.hp.hpl.jena.rdf.model.RDFNode), or check first to see if the list is empty, and replace it with a non-null list.

Version:
CVS $Id: EmptyListUpdateException.java,v 1.2 2009-10-06 13:04:43 ian_dickinson Exp $
Author:
Ian Dickinson, HP Labs (email)
See Also:
Serialized Form

Constructor Summary
EmptyListUpdateException()
           
EmptyListUpdateException(String message)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmptyListUpdateException

public EmptyListUpdateException()

EmptyListUpdateException

public EmptyListUpdateException(String message)


Licenced under the Apache License, Version 2.0