01: /*****************************************************************************
02: * Source code information
03: * -----------------------
04: * Original author Ian Dickinson, HP Labs Bristol
05: * Author email Ian.Dickinson@hp.com
06: * Package Jena 2
07: * Web http://sourceforge.net/projects/jena/
08: * Created 07-May-2003
09: * Filename $RCSfile: ConversionException.java,v $
10: * Revision $Revision: 1.8 $
11: * Release status $State: Exp $
12: *
13: * Last modified on $Date: 2008/01/02 12:06:41 $
14: * by $Author: andy_seaborne $
15: *
16: * (c) Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
17: * (see footer for full conditions)
18: *****************************************************************************/package com.hp.hpl.jena.ontology;
19:
20: // Imports
21: ///////////////
22:
23: /**
24: * <p>
25: * Exception that is thrown when an ontology resource is converted to another
26: * facet, using {@link com.hp.hpl.jena.rdf.model.RDFNode#as as()}, and the requested conversion is not
27: * possible. The reasons for the failure may be that the requested term is not
28: * in the language {@linkplain Profile profile} of the language attached to the
29: * ontology model, or because the pre-conditions for the conversion are not met.
30: * </p>
31: *
32: * @author Ian Dickinson, HP Labs
33: * (<a href="mailto:Ian.Dickinson@hp.com" >email</a>)
34: * @version CVS $Id: ConversionException.java,v 1.8 2008/01/02 12:06:41 andy_seaborne Exp $
35: */
36: public class ConversionException extends OntologyException {
37: // Constants
38: //////////////////////////////////
39:
40: // Static variables
41: //////////////////////////////////
42:
43: // Instance variables
44: //////////////////////////////////
45:
46: // Constructors
47: //////////////////////////////////
48:
49: /**
50: * Construct an ontology exception with a given message.
51: *
52: * @param msg The exception message.
53: */
54: public ConversionException(String msg) {
55: super (msg);
56: }
57:
58: // External signature methods
59: //////////////////////////////////
60:
61: // Internal implementation methods
62: //////////////////////////////////
63:
64: //==============================================================================
65: // Inner class definitions
66: //==============================================================================
67:
68: }
69:
70: /*
71: (c) Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
72: All rights reserved.
73:
74: Redistribution and use in source and binary forms, with or without
75: modification, are permitted provided that the following conditions
76: are met:
77:
78: 1. Redistributions of source code must retain the above copyright
79: notice, this list of conditions and the following disclaimer.
80:
81: 2. Redistributions in binary form must reproduce the above copyright
82: notice, this list of conditions and the following disclaimer in the
83: documentation and/or other materials provided with the distribution.
84:
85: 3. The name of the author may not be used to endorse or promote products
86: derived from this software without specific prior written permission.
87:
88: THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
89: IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
90: OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
91: IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
92: INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
93: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
94: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
95: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
96: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
97: THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
98: */
|