Package org.semanticweb.owlapi.io
Class OWLParserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.semanticweb.owlapi.model.OWLRuntimeException
org.semanticweb.owlapi.io.OWLParserException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ManchesterOWLSyntaxParserException
,OBOFormatException
,OWLRDFXMLParserException
,ParserException
Indicates that a parse error happened when trying to parse an ontology.
- Since:
- 2.0.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.OWLParserException
(String message) OWLParserException
(String message, int lineNumber, int columnNumber) OWLParserException
(String message, Throwable cause) OWLParserException
(String message, Throwable cause, int lineNumber, int columnNumber) OWLParserException
(Throwable cause) OWLParserException
(Throwable cause, int lineNumber, int columnNumber) -
Method Summary
Modifier and TypeMethodDescriptionint
int
Gets the line number of the line that the parser was parsing when the error occurred.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OWLParserException
public OWLParserException()Default constructor. -
OWLParserException
- Parameters:
message
- the message
-
OWLParserException
- Parameters:
message
- the messagecause
- the cause
-
OWLParserException
- Parameters:
cause
- the cause
-
OWLParserException
- Parameters:
message
- the messagelineNumber
- the line numbercolumnNumber
- the column number
-
OWLParserException
- Parameters:
cause
- the causelineNumber
- the line numbercolumnNumber
- the column number
-
OWLParserException
- Parameters:
message
- the messagecause
- the causelineNumber
- the line numbercolumnNumber
- the column number
-
-
Method Details
-
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()- Returns:
- the column number
-
getMessage
- Overrides:
getMessage
in classThrowable
-