org.semanticweb.owlapi.io
Class OWLParserException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.semanticweb.owlapi.model.OWLException
              extended by org.semanticweb.owlapi.io.OWLParserException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
KRSSOWLParserException, ManchesterOWLSyntaxParserException, OBOParserException, OWLParserIOException, OWLParserSAXException, OWLParserURISyntaxException, OWLRDFParserException, OWLRDFXMLParserException, OWLXMLParserException, TurtleParserException

public class OWLParserException
extends OWLException

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

Indicates that a parse error happened when trying to parse an ontology.

See Also:
Serialized Form

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

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)

OWLParserException

public OWLParserException(java.lang.String message,
                          int lineNumber,
                          int columnNumber)

OWLParserException

public OWLParserException(java.lang.Throwable cause,
                          int lineNumber,
                          int columnNumber)
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.

getColumnNumber

public int getColumnNumber()

getMessage

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