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: ListIndexException.java,v $
010: * Revision $Revision: 1.9 $
011: * Release status @releaseStatus@ $State: Exp $
012: *
013: * Last modified on $Date: 2008/01/02 12:05:48 $
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 attempts to access an indexed
027: * list element beyond the length of the list.
028: * </p>
029: *
030: * @author Ian Dickinson, HP Labs
031: * (<a href="mailto:Ian.Dickinson@hp.com">email</a>)
032: * @version Release ($Id: ListIndexException.java,v 1.9 2008/01/02 12:05:48 andy_seaborne Exp $)
033: */
034: public class ListIndexException extends JenaException {
035: // Constants
036: //////////////////////////////////
037:
038: // Static variables
039: //////////////////////////////////
040:
041: // Instance variables
042: //////////////////////////////////
043:
044: // Constructors
045: //////////////////////////////////
046:
047: /**
048: * Construct a list index exception with a default message.
049: */
050: public ListIndexException() {
051: super ("Tried to index beyond the length of a list");
052: }
053:
054: /**
055: * Construct a list index exception with a given message.
056: *
057: * @param msg The exception message.
058: */
059: public ListIndexException(String msg) {
060: super (msg);
061: }
062:
063: // External signature methods
064: //////////////////////////////////
065:
066: // Internal implementation methods
067: //////////////////////////////////
068:
069: //==============================================================================
070: // Inner class definitions
071: //==============================================================================
072:
073: }
074:
075: /*
076: (c) Copyright 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
077: All rights reserved.
078:
079: Redistribution and use in source and binary forms, with or without
080: modification, are permitted provided that the following conditions
081: are met:
082:
083: 1. Redistributions of source code must retain the above copyright
084: notice, this list of conditions and the following disclaimer.
085:
086: 2. Redistributions in binary form must reproduce the above copyright
087: notice, this list of conditions and the following disclaimer in the
088: documentation and/or other materials provided with the distribution.
089:
090: 3. The name of the author may not be used to endorse or promote products
091: derived from this software without specific prior written permission.
092:
093: THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
094: IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
095: OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
096: IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
097: INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
098: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
099: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
100: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
101: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
102: THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
103: */
|