KickJava   Java API By Example, From Geeks To Geeks.

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


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: EmptyListException.java,v $
10  * Revision $Revision: 1.6 $
11  * Release status @releaseStatus@ $State: Exp $
12  *
13  * Last modified on $Date: 2005/02/21 12:14:01 $
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
27 // Imports
28
///////////////
29
import com.hp.hpl.jena.shared.JenaException;
30
31
32 /**
33  * <p>
34  * A exception that is thrown when an operation is attempted on an empty (nil)
35  * list that actually requires a list of length one or more.
36  * </p>
37  *
38  * @author Ian Dickinson, HP Labs
39  * (<a HREF="mailto:Ian.Dickinson@hp.com">email</a>)
40  * @version Release ($Id: EmptyListException.java,v 1.6 2005/02/21 12:14:01 andy_seaborne Exp $)
41  */

42 public class EmptyListException
43     extends JenaException
44 {
45     // Constants
46
//////////////////////////////////
47

48
49     // Static variables
50
//////////////////////////////////
51

52
53     // Instance variables
54
//////////////////////////////////
55

56
57     // Constructors
58
//////////////////////////////////
59

60     /**
61      * Construct an empty list exception with a default message.
62      */

63     public EmptyListException() {
64         super( "Tried to perform an operation that requires a non-empty list" );
65     }
66
67     /**
68      * Construct an empty list exception with a given message.
69      *
70      * @param msg The exception message.
71      */

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

80
81     // Internal implementation methods
82
//////////////////////////////////
83

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

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

122
Popular Tags