Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              java.lang.RuntimeException
                  com.hp.hpl.jena.shared.JenaException
                      com.hp.hpl.jena.rdf.model.EmptyListUpdateException

All Implemented Interfaces:
  java.io.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.7 2008/01/02 12:05:48 andy_seaborne Exp $
Author:
  Ian Dickinson, HP Labs (email)
See Also:
  Serialized Form

Constructor Summary
`EmptyListUpdateException()`
`EmptyListUpdateException(java.lang.String message)`

Method Summary

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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP