public class UnparsableOntologyException extends OWLOntologyCreationException
Constructor and Description |
---|
UnparsableOntologyException(IRI documentIRI,
java.util.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
|
java.util.Map<OWLParser,OWLParserException> |
getExceptions()
Gets a map that lists the parsers (that were used to parse an
ontology) and the errors that they generated.
|
java.lang.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.
|
public UnparsableOntologyException(IRI documentIRI, java.util.Map<OWLParser,OWLParserException> exceptions)
documentIRI
- the document IRIexceptions
- the map parser->exceptionspublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public 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 java.util.Map<OWLParser,OWLParserException> getExceptions()