org.semanticweb.owl.io
Class OWLParserException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.semanticweb.owl.model.OWLException
              extended by org.semanticweb.owl.model.OWLOntologyCreationException
                  extended by org.semanticweb.owl.io.OWLParserException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
OWLParserIOException

public class OWLParserException
extends OWLOntologyCreationException

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 13-Apr-2007

See Also:
Serialized Form

Constructor Summary
OWLParserException(java.lang.String message)
           
OWLParserException(java.lang.String message, java.lang.Throwable cause)
           
OWLParserException(java.lang.Throwable cause)
           
 
Method Summary
 int getLineNumber()
          Gets the line number of the line that the parser was parsing when the error occurred.
 java.lang.String getMessage()
           
 void setLineNumber(int lineNumber)
           
 
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

OWLParserException

public OWLParserException(java.lang.String message)

OWLParserException

public OWLParserException(java.lang.String message,
                          java.lang.Throwable cause)

OWLParserException

public OWLParserException(java.lang.Throwable cause)
Method Detail

getLineNumber

public int getLineNumber()
Gets the line number of the line that the parser was parsing when the error occurred.

Returns:
A positive integer which represents the line number, or -1 if the line number could not be determined.

setLineNumber

public void setLineNumber(int lineNumber)

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable