|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jfun.parsec.ParserException
public class ParserException
ParserException is thrown when a grammar error happens.
Constructor Summary | |
---|---|
ParserException(ParseError err,
java.lang.String mname,
Pos pos)
Create a ParserException object. |
|
ParserException(java.lang.String message,
ParseError err,
java.lang.String mname,
Pos pos)
Create a ParserException object. |
|
ParserException(java.lang.String message,
java.lang.Throwable cause,
ParseError err,
java.lang.String mname,
Pos pos)
|
|
ParserException(java.lang.Throwable cause,
ParseError err,
java.lang.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. |
java.lang.String |
getMessage()
Get the default formatted error message. |
java.lang.String |
getModuleName()
Gets the module name. |
java.util.Stack |
getParsingTrace()
Get the parsing trace. |
void |
printParsingTrace()
Prints the parsing trace to the standard error output. |
void |
printParsingTrace(java.io.PrintStream out)
Print the parsing trace. |
void |
printParsingTrace(java.io.PrintWriter out)
Print the resultion trace. |
void |
printStackTrace(java.io.PrintStream s)
|
void |
printStackTrace(java.io.PrintWriter s)
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParserException(ParseError err, java.lang.String mname, Pos pos)
err
- the ParseError object.mname
- the module name.pos
- the position.public ParserException(java.lang.String message, ParseError err, java.lang.String mname, Pos pos)
message
- the error message.err
- the ParseError object.mname
- the module name.pos
- the position.public ParserException(java.lang.Throwable cause, ParseError err, java.lang.String mname, Pos pos)
cause
- the exception that causes this.err
- the ParseError object.mname
- the module name.pos
- the position.public ParserException(java.lang.String message, java.lang.Throwable cause, ParseError err, java.lang.String mname, Pos pos)
message
- the error message.cause
- the exception that causes this.err
- the ParseError object.mname
- the module name.pos
- the position.Method Detail |
---|
public java.util.Stack getParsingTrace()
ParsingFrame
as the elements.public void printParsingTrace(java.io.PrintStream out)
out
- the output stream.public void printParsingTrace(java.io.PrintWriter out)
out
- the output writer.public void printParsingTrace()
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
public final ParseError getError()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
Throwable.getMessage()
public java.lang.String getModuleName()
public int getLineNo()
public int getColumnNo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |