org.semanticweb.owlapi.model
Class OWLOntologyAlreadyExistsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.semanticweb.owlapi.model.OWLException
              extended by org.semanticweb.owlapi.model.OWLOntologyCreationException
                  extended by org.semanticweb.owlapi.model.OWLOntologyAlreadyExistsException
All Implemented Interfaces:
java.io.Serializable

public class OWLOntologyAlreadyExistsException
extends OWLOntologyCreationException

Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 18-Jan-2009

Indicates that an ontology with the given ontology IRI (and possible version IRI) exists.

See Also:
Serialized Form

Constructor Summary
OWLOntologyAlreadyExistsException(OWLOntologyID id)
          Constructs the exception to indicate that an ontology already exists when trying to create a new one
 
Method Summary
 OWLOntologyID getOntologyID()
           
 IRI getOntologyIRI()
           
 IRI getVersionIRI()
          The ontology version IRI
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OWLOntologyAlreadyExistsException

public OWLOntologyAlreadyExistsException(OWLOntologyID id)
Constructs the exception to indicate that an ontology already exists when trying to create a new one

Parameters:
id - The ID of the ontology (not null)
Method Detail

getOntologyID

public OWLOntologyID getOntologyID()

getOntologyIRI

public IRI getOntologyIRI()

getVersionIRI

public IRI getVersionIRI()
The ontology version IRI

Returns:
May be null