001: /*****************************************************************************
002: * Source code information
003: * -----------------------
004: * Original author Ian Dickinson, HP Labs Bristol
005: * Author email Ian.Dickinson@hp.com
006: * Package Jena 2
007: * Web http://sourceforge.net/projects/jena/
008: * Created 24 Jan 2003
009: * Filename $RCSfile: EmptyListException.java,v $
010: * Revision $Revision: 1.9 $
011: * Release status @releaseStatus@ $State: Exp $
012: *
013: * Last modified on $Date: 2008/01/02 12:05:47 $
014: * by $Author: andy_seaborne $
015: *
016: * (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
017: * (see footer for full conditions)
018: *****************************************************************************/package com.hp.hpl.jena.rdf.model;
019:
020: // Imports
021: ///////////////
022: import com.hp.hpl.jena.shared.JenaException;
023:
024: /**
025: * <p>
026: * A exception that is thrown when an operation is attempted on an empty (nil)
027: * list that actually requires a list of length one or more.
028: * </p>
029: *
030: * @author Ian Dickinson, HP Labs
031: * (<a href="mailto:Ian.Dickinson@hp.com">email</a>)
032: * @version Release ($Id: EmptyListException.java,v 1.9 2008/01/02 12:05:47 andy_seaborne Exp $)
033: */
034: public class EmptyListException extends JenaException {
035: // Constants
036: //////////////////////////////////
037:
038: // Static variables
039: //////////////////////////////////
040:
041: // Instance variables
042: //////////////////////////////////
043:
044: // Constructors
045: //////////////////////////////////
046:
047: /**
048: * Construct an empty list exception with a default message.
049: */
050: public EmptyListException() {
051: super (
052: "Tried to perform an operation that requires a non-empty list");
053: }
054:
055: /**
056: * Construct an empty list exception with a given message.
057: *
058: * @param msg The exception message.
059: */
060: public EmptyListException(String msg) {
061: super (msg);
062: }
063:
064: // External signature methods
065: //////////////////////////////////
066:
067: // Internal implementation methods
068: //////////////////////////////////
069:
070: //==============================================================================
071: // Inner class definitions
072: //==============================================================================
073:
074: }
075:
076: /*
077: (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
078: All rights reserved.
079:
080: Redistribution and use in source and binary forms, with or without
081: modification, are permitted provided that the following conditions
082: are met:
083:
084: 1. Redistributions of source code must retain the above copyright
085: notice, this list of conditions and the following disclaimer.
086:
087: 2. Redistributions in binary form must reproduce the above copyright
088: notice, this list of conditions and the following disclaimer in the
089: documentation and/or other materials provided with the distribution.
090:
091: 3. The name of the author may not be used to endorse or promote products
092: derived from this software without specific prior written permission.
093:
094: THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
095: IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
096: OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
097: IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
098: INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
099: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
100: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
101: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
102: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
103: THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
104: */
|