Package org.semanticweb.owlapi.io
Class UnparsableOntologyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.semanticweb.owlapi.model.OWLException
org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.io.UnparsableOntologyException
- All Implemented Interfaces:
Serializable
A class that describes how ontology parsing failed. This class collects parse errors and the
parsers that generated the errors.
- Since:
- 2.2.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnparsableOntologyException
(IRI documentIRI, Map<OWLParser, OWLParserException> exceptions, OWLOntologyLoaderConfiguration config) -
Method Summary
Modifier and TypeMethodDescriptionGets the ontology document IRI from which there was an attempt to parse an ontology.Gets a map that lists the parsers (that were used to parse an ontology) and the errors that they generated.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnparsableOntologyException
public UnparsableOntologyException(IRI documentIRI, Map<OWLParser, OWLParserException> exceptions, OWLOntologyLoaderConfiguration config) - Parameters:
documentIRI
- the document IRIexceptions
- the map parser->exceptionsconfig
- the configuration object
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getDocumentIRI
Gets the ontology document IRI from which there was an attempt to parse an ontology.- Returns:
- The ontology document IRI
-
getExceptions
Gets a map that lists the parsers (that were used to parse an ontology) and the errors that they generated.- Returns:
- The map of parsers and their errors.
-