Skip navigation links
javax.xml.xquery

Class XQStackTraceElement

Returns:
the character position in the query string containing the execution point represented by the stack trace element
  • getLineNumber

    public int getLineNumber()
    Gets the line number in the query string containing the execution point represented by this stack trace element.

    Line numbering starts at 1. -1 is returned if the line number is unknown. If the implementation does not support this method, it must return -1

    Returns:
    the line number in the query string containing the execution point represented by the stack trace element
  • getColumnNumber

    public int getColumnNumber()
    Gets the column number in the query string containing the execution point represented by this stack trace element.

    Column numbering starts at 1. -1 is returned if the column number is unknown. If the implementation does not support this method, it must return -1

    Returns:
    the column number in the query string containing the execution point represented by the stack trace element
  • getFunctionQName

    public javax.xml.namespace.QName getFunctionQName()
    Gets the QName of the function in which the error occurred, or null if it occurred outside an enclosing function (in a main module).
    Returns:
    the QName of the function in which the error occurred for this stack element or null if it occurred outside an enclosing function
  • getVariables

    public XQStackTraceVariable[] getVariables()
    Gets the variables in scope at this execution point, or null if no variable value retrieval is possible.
    Returns:
    the variables in scope at this execution point, or null if no variable value retrieval is possible.

Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.