http://jsoniq.org/errors ZC

Module Description
Before using any of the functions below please remember to import the module namespace:
import module namespace jerr = "http://jsoniq.org/errors";

This module contains one declaration of a variable for each error of the http://jsoniq.org/errors namespace. The variables serves as documentation for the errors but can also be used in the code. For example, one useful scenario is to compare an error caught in the catch clause of a try-catch expression with one of the variables.

Author:

Carlos Lopez

XQuery version and encoding for this module:

xquery version "1.0" encoding "utf-8";

Module Resources
Namespaces
jerr http://jsoniq.org/errors
Variables
$jerr:JNDY0003 as xs:QName
It is a dynamic error if two pairs in an object constructor or in a simple object union have the same name.
$jerr:JNDY0021 as xs:QName
parser error raised by jn:parse-json
$jerr:JNSE0012 as xs:QName
It is a dynamic error to serialize a sequence of less or more than one item with the JSON output method if the jsoniq-serialization-multiple-items is set to no.
$jerr:JNSE0013 as xs:QName
It is a dynamic error to serialize an atomic value not supported by JSON or a node with the JSON output method and with the jsoniq-serialization-extensions serialization parameter set to false.
$jerr:JNSE0014 as xs:QName
It is a dynamic error to serialize a function or a node with the JSON output method.
$jerr:JNSE0022 as xs:QName
It is a dynamic error to serialize a sequence that does not exist of exactly one document node with XML, HTML, XHTML, Text.
$jerr:JNTY0002 as xs:QName
It is a type error if the right-hand-side expression of a pair constructor does not return exactly one item.
$jerr:JNTY0004 as xs:QName
It is a type error to call fn:data on a sequence containing an array or an object.
$jerr:JNTY0011 as xs:QName
It is a type error if the content sequence in a node constructor or in an XQUF insert or replace update expression contains an object or an array.
$jerr:JNTY0018 as xs:QName
It is a dynamic error if there is not exactly one supplied parameter for an object or array selector.
$jerr:JNTY0020 as xs:QName
parser error for invalid option type
$jerr:JNTY0023 as xs:QName
It is a type error if the prefix is not a string or if the serialization parameters are not an element.
$jerr:JNTY0024 as xs:QName
objects or arrays don't have a string value
$jerr:JNUP0005 as xs:QName
It is a dynamic error if a pending update list contains two inserting update primitives on the same object and pair name.
$jerr:JNUP0006 as xs:QName
It is a dynamic error if upd:applyUpdates causes an object to contain two pairs with the same name.
$jerr:JNUP0007 as xs:QName
It is a type error if, in an updating expression, an array selector cannot be cast to xs:integer or if an object selector cannot be cast to xs:string.
$jerr:JNUP0008 as xs:QName
It is a dynamic error if the target of a deleting or replacing expression is not an array or an object. It is a dynamic error if the target of a renaming expression is not an object. It is a dynamic error if the target of an appending expression is not an array. It is a dynamic error if the target of a position-inserting expression is not an array. It is a dynamic error if the target of a non-position-inserting expression is not an object.
$jerr:JNUP0009 as xs:QName
It is a dynamic error if a pending update list contains two replacing update primitives on the same object or array, and with the same selector.
$jerr:JNUP0010 as xs:QName
It is a dynamic error if a pending update list contains two renaming update primitives on the same object and with the same selector.
$jerr:JNUP0016 as xs:QName
It is a dynamic error if it is attempted to create a replace, delete or rename update primitive with a selector that cannot be resolved against the target array or object.
$jerr:JNUP0017 as xs:QName
It is a dynamic error if the value in a replace expression is not exactly a single item.
$jerr:JNUP0019 as xs:QName
It is a dynamic error if the content expression, in an object insert expression, does not evaluate to a sequence of objects.
$jerr:NS
No description available.
Function Summary

No public functions declared.

blog comments powered by Disqus