Skip to Content
XQuery, 2nd Edition
book

XQuery, 2nd Edition

by Priscilla Walmsley
December 2015
Intermediate to advanced
762 pages
19h 13m
English
O'Reilly Media, Inc.
Content preview from XQuery, 2nd Edition

Appendix C. Error Summary

This appendix lists all of the errors that may be raised during evaluation of a query, in alphabetical order by name. The XQuery spec does not define any programming API defining how queries are executed from, for example, C# or Java; but there is an expectation that in any such API, you will be able to test these error codes to find out what went wrong. In most cases, you can also expect that the error code will be accompanied with an error message that gives much more detailed information.

Error names, which are in the namespace http://www.w3.org/2005/xqt-errors, are broken down into three parts:

  1. A two-character prefix indicating the specification that defines the error, listed in Table C-1.

  2. A two-character category that groups the error messages into their functional meaning. In the case of XP and XQ errors, the categories are ST for static errors, DY for dynamic errors, and TY for type errors.

  3. A four-digit number.

Table C-1. Error prefixes
Error prefixMeaning
FOFunctions and operators
SESerialization
XPXPath
XQXQuery

FOAP0001

The apply function was called, but the arity of the function in the first argument was different from the size of the array in the second argument. For example, apply(upper-case#1, ['a', 'b']), where the arity is 1 and the array has a length of 2.

FOAR0001

Division by zero, which may be raised by the div or mod operator (if the operands are xs:integer or xs:decimal values) or by the idiv operator (regardless of the types of the operands). Using ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XQuery

XQuery

Priscilla Walmsley
XSLT

XSLT

Doug Tidwell
Learning XSLT

Learning XSLT

Michael Fitzgerald

Publisher Resources

ISBN: 9781491915080Purchase bookErrata Page