|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
fr.gael.drb.query.StaticException
public class StaticException
Static exception of an XQuery static analysis phase.
A static error is an error that must be detected during the analysis phase. A syntax error is an example of a static error.
In addition to the detailed error message, this exception provides the co-oordinates of the static error in the original script: begin to end lines or column where the static occurred.
| Constructor Summary | |
|---|---|
protected |
StaticException(fr.gael.drb.query.ParseException exception)
Builds a static exception from a parse exception of the token manager. |
protected |
StaticException(String message,
fr.gael.drb.query.Token token)
Builds a static exception with a message. |
| Method Summary | |
|---|---|
int |
getBeginColumn()
Returns the column number where the static error has started. |
int |
getBeginLine()
Returns the line number where the static error has stared. |
String |
getDetailedMessage()
Returns a detailed exception message. |
int |
getEndColumn()
Returns the column number where the static error has ended. |
int |
getEndLine()
Returns the line number where the static error has ended. |
String |
getMessage()
Returns a short exception message. |
protected fr.gael.drb.query.ParseException |
getParseException()
Accessor of the encapsulated parse exception. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, 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 |
|---|
protected StaticException(String message,
fr.gael.drb.query.Token token)
message - the exception message should fit token - token involved in the error or null detected outside parsing.protected StaticException(fr.gael.drb.query.ParseException exception)
exception - the originated parse exception.| Method Detail |
|---|
protected fr.gael.drb.query.ParseException getParseException()
public int getBeginLine()
public int getEndLine()
public int getBeginColumn()
public int getEndColumn()
public String getMessage()
Static error at line 1, column 26. XQ0053 - The URI of namespace prefix "ns" cannot be a zero-length string.It is a committment that the output message ends with a trailing ".".
getMessage in class Throwablepublic String getDetailedMessage()
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||