Package org.apache.jena.rdf.model
Class EmptyListUpdateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.jena.shared.JenaException
-
- org.apache.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, orrdf:nil
. This is not permissible, since it would cause the URI of the RDFList to change fromrdf: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 asRDFList.cons(org.apache.jena.rdf.model.RDFNode)
, orRDFList.with(org.apache.jena.rdf.model.RDFNode)
, or check first to see if the listis empty
, and replace it with a non-null list.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EmptyListUpdateException()
EmptyListUpdateException(java.lang.String message)
-