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

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.hp.hpl.jena.shared.JenaException
                  extended bycom.hp.hpl.jena.rdf.model.EmptyListUpdateException
All Implemented Interfaces:
java.io.Serializable

public class EmptyListUpdateException
extends com.hp.hpl.jena.shared.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.1 2003/06/16 13:40:13 ian_dickinson Exp $
Author:
Ian Dickinson, HP Labs (email)
See Also:
Serialized Form

Constructor Summary
EmptyListUpdateException()
           
EmptyListUpdateException(java.lang.String message)
           
 
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

EmptyListUpdateException

public EmptyListUpdateException()

EmptyListUpdateException

public EmptyListUpdateException(java.lang.String message)


Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.