Class ParserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.projog.core.ProjogException
org.projog.core.parser.ParserException
- All Implemented Interfaces:
Serializable
Signals a failure to successfully parse Prolog syntax.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParserException(String message, CharacterParser parser) ParserException(String message, CharacterParser parser, Throwable t) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the index in the line being parsed of the character being parsed when the problem occurred.voidPrints a description of this exception to the specified print stream.getLine()Returns the contents of the line being parsed when the problem occurred.intReturns the line number of the line being parsed when the problem occurred.Methods inherited from class ProjogException
addClause, getClausesMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
message
-
line
-
lineNumber
private final int lineNumber -
columnNumber
private final int columnNumber
-
-
Constructor Details
-
ParserException
ParserException(String message, CharacterParser parser) -
ParserException
ParserException(String message, CharacterParser parser, Throwable t)
-
-
Method Details
-
getLine
Returns the contents of the line being parsed when the problem occurred. -
getLineNumber
public int getLineNumber()Returns the line number of the line being parsed when the problem occurred. -
getColumnNumber
public int getColumnNumber()Returns the index in the line being parsed of the character being parsed when the problem occurred. -
getDescription
Prints a description of this exception to the specified print stream.The description contains the particular line being parsed when the exception was thrown.
- Parameters:
out-PrintStreamto use for output
-