1 /***************************************************************************** 2 * Source code information 3 * ----------------------- 4 * Original author Ian Dickinson, HP Labs Bristol 5 * Author email Ian.Dickinson@hp.com 6 * Package Jena 2 7 * Web http://sourceforge.net/projects/jena/ 8 * Created 16-Jun-2003 9 * Filename $RCSfile: EmptyListUpdateException.java,v $ 10 * Revision $Revision: 1.4 $ 11 * Release status $State: Exp $ 12 * 13 * Last modified on $Date: 2005/02/21 12:14:01 $ 14 * by $Author: andy_seaborne $ 15 * 16 * (c) Copyright 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP 17 * (see footer for full conditions) 18 *****************************************************************************/ 19 20 // Package 21 /////////////// 22 package com.hp.hpl.jena.rdf.model; 23 24 25 26 // Imports 27 /////////////// 28 import com.hp.hpl.jena.shared.JenaException; 29 30 31 /** 32 * <p> 33 * Exception that is thrown when an attept is made to perform a side-effectful 34 * operation on an {@link RDFList} that is the empty list, or <code>rdf:nil</code>. 35 * This is not permissible, since it would cause the URI of the RDFList to change 36 * from <code>rdf:nil</code> to a new bNode, and in Jena the URI of a node is 37 * invariant. To avoid this operation, when extending an empty list use operations 38 * that return the updated list (such as {@link RDFList#cons}, or {@link RDFList#with}, 39 * or check first to see if the list {@linkplain RDFList#isEmpty is empty}, and replace 40 * it with a non-null list. 41 * </p> 42 * 43 * @author Ian Dickinson, HP Labs 44 * (<a HREF="mailto:Ian.Dickinson@hp.com" >email</a>) 45 * @version CVS $Id: EmptyListUpdateException.java,v 1.4 2005/02/21 12:14:01 andy_seaborne Exp $ 46 */ 47 public class EmptyListUpdateException 48 extends JenaException 49 { 50 // Constants 51 ////////////////////////////////// 52 53 // Static variables 54 ////////////////////////////////// 55 56 // Instance variables 57 ////////////////////////////////// 58 59 // Constructors 60 ////////////////////////////////// 61 62 public EmptyListUpdateException() { 63 } 64 65 public EmptyListUpdateException( String message ) { 66 super( message ); 67 } 68 69 70 // External signature methods 71 ////////////////////////////////// 72 73 // Internal implementation methods 74 ////////////////////////////////// 75 76 //============================================================================== 77 // Inner class definitions 78 //============================================================================== 79 80 } 81 82 83 /* 84 (c) Copyright 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP 85 All rights reserved. 86 87 Redistribution and use in source and binary forms, with or without 88 modification, are permitted provided that the following conditions 89 are met: 90 91 1. Redistributions of source code must retain the above copyright 92 notice, this list of conditions and the following disclaimer. 93 94 2. Redistributions in binary form must reproduce the above copyright 95 notice, this list of conditions and the following disclaimer in the 96 documentation and/or other materials provided with the distribution. 97 98 3. The name of the author may not be used to endorse or promote products 99 derived from this software without specific prior written permission. 100 101 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 102 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 103 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 104 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 105 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 106 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 107 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 108 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 109 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 110 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 111 */ 112