org.exist.xquery
Class XPathException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.exist.xquery.XPathException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
StaticXQueryException, TerminatedException

public class XPathException
extends java.lang.Exception

See Also:
Serialized Form

Constructor Summary
XPathException(ErrorCodes.ErrorCode errorCode, java.lang.String errorDesc)
           
XPathException(ErrorCodes.ErrorCode errorCode, java.lang.String errorDesc, Sequence errorVal)
           
XPathException(ErrorCodes.ErrorCode errorCode, java.lang.String errorDesc, java.lang.Throwable cause)
           
XPathException(Expression expr, ErrorCodes.ErrorCode errorCode, java.lang.String errorDesc)
           
XPathException(Expression expr, ErrorCodes.ErrorCode errorCode, java.lang.String errorDesc, Sequence errorVal)
           
XPathException(Expression expr, ErrorCodes.ErrorCode errorCode, java.lang.String errorDesc, Sequence errorVal, java.lang.Throwable cause)
           
XPathException(Expression expr, java.lang.String message)
          Deprecated. 
XPathException(Expression expr, java.lang.String message, java.lang.Throwable cause)
          Deprecated. 
XPathException(Expression expr, java.lang.Throwable cause)
          Deprecated. 
XPathException(int line, int column, java.lang.String message)
           
XPathException(int line, int column, java.lang.String message, java.lang.Throwable cause)
          Deprecated. 
XPathException(int line, int column, java.lang.Throwable cause)
          Deprecated. 
XPathException(java.lang.String message)
           
XPathException(java.lang.String message, java.lang.Throwable cause)
          Deprecated. 
XPathException(java.lang.Throwable cause)
          Deprecated. 
XPathException(XQueryAST ast, java.lang.String message)
          Deprecated. 
 
Method Summary
 void addFunctionCall(UserDefinedFunction def, Expression call)
           
 ErrorCodes.ErrorCode getCode()
           
 int getColumn()
           
 java.lang.String getDetailMessage()
          Returns just the error message, not including line numbers or the call stack.
 ErrorCodes.ErrorCode getErrorCode()
          Get xquery errorcode
 Sequence getErrorVal()
          Get xquery error value
 int getLine()
           
 java.lang.String getMessage()
           
 java.lang.String getMessageAsHTML()
           
 void prependMessage(java.lang.String msg)
           
 void setLocation(int line, int column)
           
 void setLocation(int line, int column, XACMLSource source)
           
 
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

XPathException

public XPathException(java.lang.String message)
Parameters:
message -

XPathException

public XPathException(int line,
                      int column,
                      java.lang.String message)

XPathException

@Deprecated
public XPathException(Expression expr,
                                 java.lang.String message)
Deprecated. 

Use constructor with errorCode and errorVal


XPathException

public XPathException(Expression expr,
                      ErrorCodes.ErrorCode errorCode,
                      java.lang.String errorDesc)

XPathException

public XPathException(Expression expr,
                      ErrorCodes.ErrorCode errorCode,
                      java.lang.String errorDesc,
                      Sequence errorVal)

XPathException

@Deprecated
public XPathException(XQueryAST ast,
                                 java.lang.String message)
Deprecated. 

Use constructor with errorCode and errorVal


XPathException

@Deprecated
public XPathException(java.lang.Throwable cause)
Deprecated. 


XPathException

@Deprecated
public XPathException(java.lang.String message,
                                 java.lang.Throwable cause)
Deprecated. 


XPathException

@Deprecated
public XPathException(Expression expr,
                                 java.lang.Throwable cause)
Deprecated. 


XPathException

@Deprecated
public XPathException(Expression expr,
                                 java.lang.String message,
                                 java.lang.Throwable cause)
Deprecated. 

Use constructor with errorCode and errorVal


XPathException

public XPathException(Expression expr,
                      ErrorCodes.ErrorCode errorCode,
                      java.lang.String errorDesc,
                      Sequence errorVal,
                      java.lang.Throwable cause)

XPathException

public XPathException(ErrorCodes.ErrorCode errorCode,
                      java.lang.String errorDesc,
                      Sequence errorVal)

XPathException

public XPathException(ErrorCodes.ErrorCode errorCode,
                      java.lang.String errorDesc)

XPathException

public XPathException(ErrorCodes.ErrorCode errorCode,
                      java.lang.String errorDesc,
                      java.lang.Throwable cause)

XPathException

@Deprecated
public XPathException(int line,
                                 int column,
                                 java.lang.String message,
                                 java.lang.Throwable cause)
Deprecated. 


XPathException

@Deprecated
public XPathException(int line,
                                 int column,
                                 java.lang.Throwable cause)
Deprecated. 

Method Detail

setLocation

public void setLocation(int line,
                        int column)

setLocation

public void setLocation(int line,
                        int column,
                        XACMLSource source)

getLine

public int getLine()

getColumn

public int getColumn()

getCode

public ErrorCodes.ErrorCode getCode()

addFunctionCall

public void addFunctionCall(UserDefinedFunction def,
                            Expression call)

prependMessage

public void prependMessage(java.lang.String msg)

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getDetailMessage

public java.lang.String getDetailMessage()
Returns just the error message, not including line numbers or the call stack.

Returns:
error message

getMessageAsHTML

public java.lang.String getMessageAsHTML()

getErrorCode

public ErrorCodes.ErrorCode getErrorCode()
Get xquery errorcode


getErrorVal

public Sequence getErrorVal()
Get xquery error value