|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.semanticweb.owl.model.OWLException
org.semanticweb.owl.model.OWLOntologyCreationException
org.semanticweb.owl.io.UnparsableOntologyException
public class UnparsableOntologyException
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 11-Apr-2008
Base class for providing details of error messages during the parsing
of ontologies. This class collects parse errors and the parsers that
generated the errors.
Constructor Summary | |
---|---|
UnparsableOntologyException(java.net.URI ontologyURI,
java.util.Map<OWLParser,java.lang.Throwable> exceptions)
|
Method Summary | |
---|---|
java.util.Map<OWLParser,java.lang.Throwable> |
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()
|
java.net.URI |
getOntologyURI()
Gets the URI of the ontology which was being parsed. |
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. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, 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 |
---|
public UnparsableOntologyException(java.net.URI ontologyURI, java.util.Map<OWLParser,java.lang.Throwable> exceptions)
Method Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.net.URI getOntologyURI()
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,java.lang.Throwable> getExceptions()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |