~zorba-coders/zorba/bug-1044260

« back to all changes in this revision

Viewing changes to modules/org/jsoniq/www/pregenerated/errors.xq

  • Committer: Paul J. Lucas
  • Date: 2012-09-26 19:24:38 UTC
  • mfrom: (11049.1.16 zorba)
  • Revision ID: paul@lucasmail.org-20120926192438-2irpreb246irtqog
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
  :)
21
21
 (:~
22
22
 : This module contains one declaration of a variable for each
23
 
 : error of the http://www.jsoniq.org/errors namespace.
 
23
 : error of the http://jsoniq.org/errors namespace.
24
24
 : The variables serves as documentation for the errors but can also
25
25
 : be used in the code. For example, one useful scenario is to compare
26
26
 : an error caught in the catch clause of a try-catch expression with one of
33
33
 
34
34
xquery version '1.0';
35
35
 
36
 
module namespace jerr = 'http://www.jsoniq.org/errors';
 
36
module namespace jerr = 'http://jsoniq.org/errors';
37
37
 
38
 
declare variable $jerr:NS := 'http://www.jsoniq.org/errors';
 
38
declare variable $jerr:NS := 'http://jsoniq.org/errors';
39
39
 
40
40
(:~
41
41
 :It is a type error if the right-hand-side expression of a pair constructor does not return exactly one item.
108
108
declare variable $jerr:JNSE0013 as xs:QName := fn:QName($jerr:NS, "jerr:JNSE0013");
109
109
 
110
110
(:~
111
 
 :It is a dynamic error to serialize a function with the
 
111
 :It is a dynamic error to serialize a function or a node with the
112
112
 : JSON output method.
113
113
:)
114
114
declare variable $jerr:JNSE0014 as xs:QName := fn:QName($jerr:NS, "jerr:JNSE0014");
141
141
declare variable $jerr:JNUP0019 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0019");
142
142
 
143
143
(:~
 
144
 :It is a type error if the prefix is not a string or if the 
 
145
 : serialization parameters are not an element.
 
146
:)
 
147
declare variable $jerr:JNTY0023 as xs:QName := fn:QName($jerr:NS, "jerr:JNTY0023");
 
148
 
 
149
(:~
144
150
 :objects or arrays don't have a string value
145
151
:)
146
 
declare variable $jerr:JNTY0003 as xs:QName := fn:QName($jerr:NS, "jerr:JNTY0003");
147
 
 
148
 
(:~
149
 
 :parser errors raised by the JSONIQLoader
150
 
:)
151
 
declare variable $jerr:JSDY0040 as xs:QName := fn:QName($jerr:NS, "jerr:JSDY0040");
 
152
declare variable $jerr:JNTY0024 as xs:QName := fn:QName($jerr:NS, "jerr:JNTY0024");
152
153
 
153
154
(:~
154
155
 :parser error for invalid option type
155
156
:)
156
 
declare variable $jerr:JSDY0020 as xs:QName := fn:QName($jerr:NS, "jerr:JSDY0020");
 
157
declare variable $jerr:JNTY0020 as xs:QName := fn:QName($jerr:NS, "jerr:JNTY0020");
157
158
 
158
159
(:~
159
160
 :parser error raised by jn:parse-json
160
161
:)
161
 
declare variable $jerr:JSDY0021 as xs:QName := fn:QName($jerr:NS, "jerr:JSDY0021");
 
 
b'\\ No newline at end of file'
 
162
declare variable $jerr:JNDY0021 as xs:QName := fn:QName($jerr:NS, "jerr:JNDY0021");
 
 
b'\\ No newline at end of file'