|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.basex.query.QueryException
public final class QueryException
This class indicates exceptions during the parsing or evaluation of a query.
Constructor Summary | |
---|---|
QueryException(InputInfo ii,
Err er,
java.lang.Object... ext)
Default constructor. |
|
QueryException(InputInfo ii,
QNm errc,
java.lang.String msg,
java.lang.Object... ext)
Constructor, specifying the error code and message as string. |
|
QueryException(java.lang.String msg)
Constructor, specifying a simple error message. |
|
QueryException(java.lang.Throwable th)
Constructor, specifying an exception or error. |
Method Summary | |
---|---|
void |
add(InputInfo ii)
Adds an input info to the stack. |
int |
col()
Returns the error column. |
Err |
err()
Returns the error. |
QueryException |
err(Err e)
Sets an error. |
java.lang.String |
file()
Returns the file. |
java.lang.String |
getLocalizedMessage()
|
java.lang.String |
getMessage()
|
InputInfo |
info()
Returns the input info. |
QueryException |
info(InputInfo ii)
Sets input info. |
boolean |
isCatchable()
Checks if this exception can be caught by a try/catch expression. |
int |
line()
Returns the error line. |
int |
markedCol()
Returns the marked error column. |
QueryException |
notCatchable()
Makes this exception uncatchable by a try/catch expression. |
QNm |
qname()
Returns the error name. |
StringList |
suggest()
Returns suggestions for code suggestions. |
QueryException |
suggest(InputParser qp,
StringList sug)
Sets code suggestions. |
Value |
value()
Returns the error value. |
QueryException |
value(Value v)
Sets the error value. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryException(java.lang.Throwable th)
Err.BASX_GENERIC
will be set
as error code.
th
- exception or errorpublic QueryException(java.lang.String msg)
Err.BASX_GENERIC
will be set
as error code.
msg
- error messagepublic QueryException(InputInfo ii, Err er, java.lang.Object... ext)
ii
- input infoer
- error referenceext
- error extensionpublic QueryException(InputInfo ii, QNm errc, java.lang.String msg, java.lang.Object... ext)
ii
- input infoerrc
- error codemsg
- error messageext
- error extensionMethod Detail |
---|
public int col()
public int markedCol()
public int line()
public java.lang.String file()
public StringList suggest()
public QueryException suggest(InputParser qp, StringList sug)
qp
- query parsersug
- code suggestions
public void add(InputInfo ii)
ii
- input infopublic QueryException info(InputInfo ii)
ii
- input info
public InputInfo info()
public QueryException value(Value v)
v
- error value
public QueryException err(Err e)
e
- error
public QNm qname()
public Err err()
public Value value()
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public boolean isCatchable()
try/catch
expression.
public QueryException notCatchable()
try/catch
expression.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |