public class AssertionException extends Exception
Modifier and Type | Field and Description |
---|---|
(package private) static long |
serialVersionUID |
Constructor and Description |
---|
AssertionException(antlr.CharStreamException cse) |
AssertionException(int line,
int column,
String errorMsg) |
AssertionException(antlr.MismatchedCharException ex) |
AssertionException(antlr.MismatchedTokenException ex) |
AssertionException(antlr.NoViableAltException ex) |
AssertionException(antlr.NoViableAltForCharException ex) |
AssertionException(antlr.RecognitionException re) |
AssertionException(String errorMsg) |
AssertionException(antlr.TokenStreamException tse) |
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Returns the column of the assertion on which this
error occured if hasLocationInfo() returns
true . |
int |
getLine()
Returns the line of the assertion on which this
error occured if hasLocationInfo() returns
true . |
String |
getMessage()
Returns the message of this error.
|
boolean |
hasLocationInfo()
Returns
true if this exception contains information
about where in the assertion string the error occured,
meaning getLine() and getColumn() will return
correct values. |
String |
toString()
Returns a message describing this error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
static final long serialVersionUID
public AssertionException(int line, int column, String errorMsg)
public AssertionException(String errorMsg)
public AssertionException(antlr.RecognitionException re)
public AssertionException(antlr.TokenStreamException tse)
public AssertionException(antlr.CharStreamException cse)
public AssertionException(antlr.MismatchedCharException ex)
public AssertionException(antlr.MismatchedTokenException ex)
public AssertionException(antlr.NoViableAltException ex)
public AssertionException(antlr.NoViableAltForCharException ex)
public boolean hasLocationInfo()
true
if this exception contains information
about where in the assertion string the error occured,
meaning getLine() and getColumn() will return
correct values. Returns false
otherwise.public int getLine()
true
. Otherwise -1
will
be returned.public int getColumn()
true
. Otherwise -1
will
be returned.public String getMessage()
getMessage
in class Throwable