|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
csheets.ext.assertion.AssertionException
public class AssertionException
Representing a parse error of an assertion. Thrown by Assertion().
| Field Summary | |
|---|---|
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
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 Throwablepublic String toString()
toString in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||