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:
Serializable
Direct Known Subclasses:
StaticXQueryException, TerminatedException

public class XPathException
extends Exception

See Also:
Serialized Form

Constructor Summary
XPathException(String message)
           
XPathException(String message, int line, int column)
           
XPathException(String message, Throwable cause)
           
XPathException(Throwable cause)
           
XPathException(XQueryAST ast, String message)
           
XPathException(XQueryAST ast, String message, Throwable cause)
           
XPathException(XQueryAST ast, Throwable cause)
           
 
Method Summary
 void addFunctionCall(UserDefinedFunction def, XQueryAST ast)
           
 int getColumn()
           
 String getDetailMessage()
          Returns just the error message, not including line numbers or the call stack.
 int getLine()
           
 String getMessage()
           
 String getMessageAsHTML()
           
 void prependMessage(String msg)
           
 void setASTNode(XQueryAST ast)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XPathException

public XPathException(String message)
Parameters:
message -

XPathException

public XPathException(XQueryAST ast,
                      String message)

XPathException

public XPathException(String message,
                      int line,
                      int column)

XPathException

public XPathException(Throwable cause)
Parameters:
cause -

XPathException

public XPathException(String message,
                      Throwable cause)
Parameters:
message -
cause -

XPathException

public XPathException(XQueryAST ast,
                      String message,
                      Throwable cause)

XPathException

public XPathException(XQueryAST ast,
                      Throwable cause)
Method Detail

getLine

public int getLine()

getColumn

public int getColumn()

setASTNode

public void setASTNode(XQueryAST ast)

addFunctionCall

public void addFunctionCall(UserDefinedFunction def,
                            XQueryAST ast)

prependMessage

public void prependMessage(String msg)

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getDetailMessage

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

Returns:
error message

getMessageAsHTML

public String getMessageAsHTML()


Copyright (C) Wolfgang Meier. All rights reserved.