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
- Direct Known Subclasses:
EndOfStreamException
Signals a failure to successfully parse Prolog syntax.
- See Also:
-
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
-
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
-