jfun.parsec
public class ParserException extends RuntimeException
Constructor Summary | |
---|---|
ParserException(ParseError err, String mname, Pos pos)
Create a ParserException object. | |
ParserException(String message, ParseError err, String mname, Pos pos)
Create a ParserException object. | |
ParserException(Throwable cause, ParseError err, String mname, Pos pos) | |
ParserException(String message, Throwable cause, ParseError err, String mname, Pos pos) |
Method Summary | |
---|---|
int | getColumnNo()
Gets the column number of the error. |
ParseError | getError()
Get the ParseError object. |
int | getLineNo()
Gets the line number of the error. |
String | getMessage()
Get the default formatted error message. |
String | getModuleName()
Gets the module name. |
Stack | getParsingTrace()
Get the parsing trace. |
void | printParsingTrace(PrintStream out)
Print the parsing trace. |
void | printParsingTrace(PrintWriter out)
Print the resultion trace. |
void | printParsingTrace()
Prints the parsing trace to the standard error output. |
void | printStackTrace(PrintStream s) |
void | printStackTrace(PrintWriter s) |
Parameters: err the ParseError object. mname the module name. pos the position.
Parameters: message the error message. err the ParseError object. mname the module name. pos the position.
Parameters: cause the exception that causes this. err the ParseError object. mname the module name. pos the position.
Parameters: message the error message. cause the exception that causes this. err the ParseError object. mname the module name. pos the position.
Returns: the column number.
Returns: Returns the err.
Returns: the line number.
See Also: java.lang.Throwable#getMessage()
Returns: the module name.
Returns: the parsing trace with objects of ParsingFrame as the elements.
Parameters: out the output stream.
Parameters: out the output writer.