public class UnparsableOntologyException extends OWLOntologyCreationException
| Constructor and Description |
|---|
UnparsableOntologyException(IRI documentIRI,
Map<OWLParser,OWLParserException> exceptions) |
| Modifier and Type | Method and Description |
|---|---|
IRI |
getDocumentIRI()
Gets the ontology document IRI from which there was an attempt to parse an ontology
|
Map<OWLParser,OWLParserException> |
getExceptions()
Gets a map that lists the parsers (that were used to parse an
ontology) and the errors that they generated.
|
String |
getMessage() |
static boolean |
isIncludeStackTraceInMessage()
Determines if the stack trace for each parse exception is
included in the getMessage() method.
|
static void |
setIncludeStackTraceInMessage(boolean includeStackTraceInMessage)
Specifies whether the stack trace for each parser exception should be included in the message
generated by this exception - this can be useful for debugging purposes, but can bloat the
message for end user usage.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UnparsableOntologyException(IRI documentIRI, Map<OWLParser,OWLParserException> exceptions)
documentIRI - the document IRIexceptions - the map parser->exceptionspublic String getMessage()
getMessage in class Throwablepublic IRI getDocumentIRI()
public static boolean isIncludeStackTraceInMessage()
true if the stack trace is included in the
message for this exception, other wise false.public static void setIncludeStackTraceInMessage(boolean includeStackTraceInMessage)
includeStackTraceInMessage - Set to true to indicate that the stack
trace for each parser exception should be included in the message for this exception,
otherwise set to false.public Map<OWLParser,OWLParserException> getExceptions()
Copyright © 2013 The University of Manchester. All Rights Reserved.