KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > hp > hpl > jena > rdf > model > ListIndexException


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 24 Jan 2003
9  * Filename $RCSfile: ListIndexException.java,v $
10  * Revision $Revision: 1.6 $
11  * Release status @releaseStatus@ $State: Exp $
12  *
13  * Last modified on $Date: 2005/02/21 12:14:03 $
14  * by $Author: andy_seaborne $
15  *
16  * (c) Copyright 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  * A exception that is thrown when an operation attempts to access an indexed
34  * list element beyond the length of the list.
35  * </p>
36  *
37  * @author Ian Dickinson, HP Labs
38  * (<a HREF="mailto:Ian.Dickinson@hp.com">email</a>)
39  * @version Release ($Id: ListIndexException.java,v 1.6 2005/02/21 12:14:03 andy_seaborne Exp $)
40  */

41 public class ListIndexException
42     extends JenaException
43 {
44     // Constants
45
//////////////////////////////////
46

47
48     // Static variables
49
//////////////////////////////////
50

51
52     // Instance variables
53
//////////////////////////////////
54

55
56     // Constructors
57
//////////////////////////////////
58

59     /**
60      * Construct a list index exception with a default message.
61      */

62     public ListIndexException() {
63         super( "Tried to index beyond the length of a list" );
64     }
65
66     /**
67      * Construct a list index exception with a given message.
68      *
69      * @param msg The exception message.
70      */

71     public ListIndexException( String JavaDoc msg ) {
72         super( msg );
73     }
74
75
76     // External signature methods
77
//////////////////////////////////
78

79
80     // Internal implementation methods
81
//////////////////////////////////
82

83
84     //==============================================================================
85
// Inner class definitions
86
//==============================================================================
87

88
89 }
90
91
92 /*
93     (c) Copyright 2003, 2004, 2005 Hewlett-Packard Development Company, LP
94     All rights reserved.
95
96     Redistribution and use in source and binary forms, with or without
97     modification, are permitted provided that the following conditions
98     are met:
99
100     1. Redistributions of source code must retain the above copyright
101        notice, this list of conditions and the following disclaimer.
102
103     2. Redistributions in binary form must reproduce the above copyright
104        notice, this list of conditions and the following disclaimer in the
105        documentation and/or other materials provided with the distribution.
106
107     3. The name of the author may not be used to endorse or promote products
108        derived from this software without specific prior written permission.
109
110     THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
111     IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
112     OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
113     IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
114     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
115     NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
116     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
117     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
118     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
119     THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
120 */

121
Popular Tags