Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
fr.inria.rules.integraal.util.stream.IteratorException
fr.inria.rules.integraal.io.api.ParseException
- All Implemented Interfaces:
Serializable
This class describes exceptions that occurred during the parsing
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParseException(String message) Creates a parse exception from a message.ParseException(String message, int line, int column) Creates a parse exception with source position information.ParseException(String message, int line, int column, Throwable e) Creates a parse exception with source position information and a cause.ParseException(String message, Throwable e) Creates a parse exception from a message and cause.Creates a parse exception from an underlying cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseException
-
ParseException
Creates a parse exception from a message.- Parameters:
message- the message of the exception
-
ParseException
Creates a parse exception with source position information.- Parameters:
message- the message of the exceptionline- the line at which the exception was detectedcolumn- the character position in the line at which the exception was detected
-
ParseException
Creates a parse exception with source position information and a cause.- Parameters:
message- the message of the exceptionline- the line at which the exception was detectedcolumn- the character position in the line at which the exception was detectede- the initial exception
-
ParseException
Creates a parse exception from an underlying cause.- Parameters:
e- the initial exception
-
-
Method Details
-
getLine
public int getLine()Returns the line number where parsing failed.- Returns:
- the line at which the exception occurred, -1 if it is not known
-
getColumn
public int getColumn()Returns the column number where parsing failed.- Returns:
- the character position in the line at which the exception was detected, -1 if it is not known
-