public class UnresolvedIdentifiersException extends ParseException implements java.lang.Iterable<ParseException>
This exception is thrown by DBChecker when several columns or tables do not exist.
It lists several ParseException (either UnresolvedColumnException or UnresolvedTableException).
Its message only tells the number of unresolved identifiers.
If you want to have more details about the position and the exact message of each exception, you just have to iterate
on this UnresolvedIdentifiersException (method iterator()).
DBChecker,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<ParseException> |
exceptions
List of exceptions (one per unresolved identifier).
|
currentToken, eol, expectedTokenSequences, position, tokenImage| Constructor and Description |
|---|
UnresolvedIdentifiersException()
Build an empty
UnresolvedIdentifiersException (that's to say: there is no unresolved identifier). |
| Modifier and Type | Method and Description |
|---|---|
void |
addException(ParseException pe)
Adds a
ParseException (supposed to be either an UnresolvedColumnException or an UnresolvedTableException). |
java.util.Iterator<ParseException> |
getErrors()
Gets the list of all errors.
|
java.lang.String |
getMessage()
Only tells how many identifiers have not been resolved.
|
int |
getNbErrors()
Gets the number of unresolved identifiers.
|
java.util.Iterator<ParseException> |
iterator() |
getPositionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected java.util.ArrayList<ParseException> exceptions
public UnresolvedIdentifiersException()
UnresolvedIdentifiersException (that's to say: there is no unresolved identifier).public final void addException(ParseException pe)
ParseException (supposed to be either an UnresolvedColumnException or an UnresolvedTableException).pe - An exception.public final int getNbErrors()
public final java.util.Iterator<ParseException> getErrors()
public final java.util.Iterator<ParseException> iterator()
iterator in interface java.lang.Iterable<ParseException>public java.lang.String getMessage()
getMessage in class java.lang.ThrowableThrowable.getMessage()