public class ParserException
extends java.lang.RuntimeException
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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) |
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.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()