public class CreoleParseException
extends java.lang.RuntimeException
Had to make this a RuntimeException. If extend Beaver's Exception as they intend, then am stuck with Beaver's fantastically incompetent error-handling.
Note that the source locations reported are 0-based, not 1-based, and that the reported numbers will be skewed (to higher/smaller locations) if your input has carriage returns, because they are stripped out before the offsets are counted.
Constructor and Description |
---|
CreoleParseException(beaver.Parser.Exception e) |
CreoleParseException(java.lang.String msg)
Would like to eliminate this so all of these exceptions will give a
good indication of point-of-failure.
|
CreoleParseException(java.lang.String msg,
int offset,
int line,
int column) |
CreoleParseException(java.lang.String msg,
java.lang.Throwable cause) |
CreoleParseException(java.lang.String msg,
com.admc.jcreole.Token sourceToken) |
Modifier and Type | Method and Description |
---|---|
int |
getColumn() |
int |
getLine() |
int |
getOffset() |
public CreoleParseException(java.lang.String msg, java.lang.Throwable cause)
public CreoleParseException(java.lang.String msg)
public CreoleParseException(beaver.Parser.Exception e)
public CreoleParseException(java.lang.String msg, com.admc.jcreole.Token sourceToken)
public CreoleParseException(java.lang.String msg, int offset, int line, int column)