edu.rice.cs.javalanglevels
Class JExprParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
edu.rice.cs.javalanglevels.parser.ParseException
edu.rice.cs.javalanglevels.JExprParseException
- All Implemented Interfaces:
- Serializable
public class JExprParseException
- extends ParseException
Used to represent custom parse exceptions in the JExpression parser.
- See Also:
- Serialized Form
|
Method Summary |
File |
getFile()
May be null |
String |
getMessage()
This method has the standard behavior when this object has been
created using the standard constructors. |
JExprParseException
public JExprParseException(File file,
String message,
Token currentTokenVal,
int[][] expectedTokenSequencesVal,
String[] tokenImageVal)
JExprParseException
public JExprParseException(ParseException e)
- Wrap a ParseException (assumed not to be a JExprParseException.
The file will be null.
getFile
public File getFile()
- May be null
getMessage
public String getMessage()
- Description copied from class:
ParseException
- This method has the standard behavior when this object has been
created using the standard constructors. Otherwise, it uses
"currentToken" and "expectedTokenSequences" to generate a parse
error message and returns it. If this object has been created
due to a parse error, and you do not catch it (it gets thrown
from the parser), then this method is called during the printing
of the final stack trace, and hence the correct error message
gets displayed.
- Overrides:
getMessage in class ParseException