|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.metamatrix.core.MetaMatrixCoreException
com.metamatrix.api.exception.MetaMatrixException
com.metamatrix.api.exception.MetaMatrixProcessingException
com.metamatrix.api.exception.query.QueryProcessingException
com.metamatrix.api.exception.query.QueryParserException
public class QueryParserException
Thrown when a query cannot be parsed. This is most likely due to not following the Query Parser grammar, which defines how queries are parsed.
Constructor Summary | |
---|---|
QueryParserException()
No-arg constructor required by Externalizable semantics. |
|
QueryParserException(java.lang.String message)
Construct an instance with the message specified. |
|
QueryParserException(java.lang.String code,
java.lang.String message)
Construct an instance with the message and error code specified. |
|
QueryParserException(java.lang.Throwable e,
java.lang.String message)
Construct an instance from a message and an exception to chain to this one. |
|
QueryParserException(java.lang.Throwable e,
java.lang.String code,
java.lang.String message)
Construct an instance from a message and a code and an exception to chain to this one. |
Method Summary | |
---|---|
int |
getColumn()
Get column error occurred on in string being parsed. |
int |
getLine()
Get line error occurred on in string being parsed. |
boolean |
isLocationKnown()
Determine if location of error in string being parsed is known. |
void |
readExternal(java.io.ObjectInput in)
|
void |
setErrorLocation(int line,
int column)
Set location of error |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class com.metamatrix.api.exception.MetaMatrixException |
---|
getChild, getCode, getFullMessage, getMessage, setCode, toString |
Methods inherited from class com.metamatrix.core.MetaMatrixCoreException |
---|
getCause, initCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryParserException()
public QueryParserException(java.lang.String message)
message
- A message describing the exceptionpublic QueryParserException(java.lang.String code, java.lang.String message)
message
- A message describing the exceptioncode
- The error codepublic QueryParserException(java.lang.Throwable e, java.lang.String message)
message
- A message describing the exceptione
- An exception to nest within this onepublic QueryParserException(java.lang.Throwable e, java.lang.String code, java.lang.String message)
e
- An exception to nest within this onemessage
- A message describing the exceptioncode
- A code denoting the exceptionMethod Detail |
---|
public void setErrorLocation(int line, int column)
line
- Line error occurred on in inputcolumn
- Column error occurred on in inputpublic boolean isLocationKnown()
public int getLine()
public int getColumn()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in class MetaMatrixException
java.io.IOException
java.lang.ClassNotFoundException
Externalizable.readExternal(java.io.ObjectInput)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in class MetaMatrixException
java.io.IOException
Externalizable.writeExternal(java.io.ObjectOutput)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |