KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > hp > hpl > jena > ontology > ProfileException


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 22-May-2003
9  * Filename $RCSfile: ProfileException.java,v $
10  * Revision $Revision: 1.4 $
11  * Release status $State: Exp $
12  *
13  * Last modified on $Date: 2005/02/21 12:04:36 $
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.ontology;
23
24
25 // Imports
26
///////////////
27

28 /**
29  * <p>
30  * Exception that is raised when an ontology operation is attempted that is
31  * not present in the language profile for the current ontology model. For example,
32  * if the language profile is
33  * {@linkplain com.hp.hpl.jena.ontology.ProfileRegistry#OWL_LITE_LANG owl lite},
34  * class complements are not permitted and so that element of the profile is null.
35  * An attempt to create a class complement in an OWL Lite model will raise a
36  * ProfileException.
37  * </p>
38  *
39  * @author Ian Dickinson, HP Labs
40  * (<a HREF="mailto:Ian.Dickinson@hp.com" >email</a>)
41  * @version CVS $Id: ProfileException.java,v 1.4 2005/02/21 12:04:36 andy_seaborne Exp $
42  */

43 public class ProfileException
44     extends OntologyException
45 {
46     // Constants
47
//////////////////////////////////
48

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

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

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

58     public ProfileException( String JavaDoc element, Profile profile ) {
59         super( "Attempted to use language construct " + element + " that is not supported in the current language profile: " +
60                ((profile == null) ? "not specified" : profile.getLabel()) );
61     }
62     
63     
64     // External signature methods
65
//////////////////////////////////
66

67     // Internal implementation methods
68
//////////////////////////////////
69

70     //==============================================================================
71
// Inner class definitions
72
//==============================================================================
73

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

106
107
108
Popular Tags