com.hp.hpl.jena.ontology
Class ConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.hp.hpl.jena.shared.JenaException
com.hp.hpl.jena.ontology.OntologyException
com.hp.hpl.jena.ontology.ConversionException
- All Implemented Interfaces:
- Serializable
public class ConversionException
- extends OntologyException
Exception that is thrown when an ontology resource is converted to another
facet, using as()
, and the requested conversion is not
possible. The reasons for the failure may be that the requested term is not
in the language profile of the language attached to the
ontology model, or because the pre-conditions for the conversion are not met.
- Version:
- CVS $Id: ConversionException.java,v 1.2 2009-10-06 13:04:34 ian_dickinson Exp $
- Author:
- Ian Dickinson, HP Labs
(email)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ConversionException
public ConversionException(String msg)
- Construct an ontology exception with a given message.
- Parameters:
msg
- The exception message.
Licenced under the Apache License, Version 2.0