~juan457/+junk/zorba

« back to all changes in this revision

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

  • Committer: Markos Zaharioudakis
  • Date: 2012-07-11 15:38:39 UTC
  • mfrom: (10924 zorba)
  • mto: This revision was merged to the branch mainline in revision 10932.
  • Revision ID: markos_za@yahoo.com-20120711153839-0mkh15cg2ubknchd
work in progress

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
declare variable $jerr:NS := 'http://www.jsoniq.org/errors';
39
39
 
40
40
(:~
 
41
 :It is a type error if the left-hand-side expression of a pair constructor cannot be atomized and cast to a string.
 
42
:)
 
43
declare variable $jerr:JNTY0001 as xs:QName := fn:QName($jerr:NS, "jerr:JNTY0001");
 
44
 
 
45
(:~
 
46
 :It is a type error if the right-hand-side expression of a pair constructor does not return exactly one item.
 
47
:)
 
48
declare variable $jerr:JNTY0002 as xs:QName := fn:QName($jerr:NS, "jerr:JNTY0002");
 
49
 
 
50
(:~
 
51
 :It is a dynamic error if two pairs in an object constructor or in a simple object union have the same name.
 
52
:)
 
53
declare variable $jerr:JNDY0003 as xs:QName := fn:QName($jerr:NS, "jerr:JNDY0003");
 
54
 
 
55
(:~
 
56
 :It is a type error to call fn:data on a sequence containing an array or an object.
 
57
:)
 
58
declare variable $jerr:JNTY0004 as xs:QName := fn:QName($jerr:NS, "jerr:JNTY0004");
 
59
 
 
60
(:~
 
61
 :It is a dynamic error if a pending update list contains two inserting update primitives on the same object and pair name.
 
62
:)
 
63
declare variable $jerr:JNUP0005 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0005");
 
64
 
 
65
(:~
 
66
 :It is a dynamic error if upd:applyUpdates causes an object to contain two pairs with the same name.
 
67
:)
 
68
declare variable $jerr:JNUP0006 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0006");
 
69
 
 
70
(:~
 
71
 :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.
 
72
:)
 
73
declare variable $jerr:JNUP0007 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0007");
 
74
 
 
75
(:~
 
76
 :It is a dynamic error if the target of a deleting or replacing expression is not an array or an object.
 
77
 : It is a dynamic error if the target of a renaming expression is not an object.
 
78
 : It is a dynamic error if the target of an appending expression is not an array.
 
79
 : It is a dynamic error if the target of a position-inserting expression is not an array.
 
80
 : It is a dynamic error if the target of a non-position-inserting expression is not an object.
 
81
:)
 
82
declare variable $jerr:JNUP0008 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0008");
 
83
 
 
84
(:~
 
85
 :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.
 
86
:)
 
87
declare variable $jerr:JNUP0009 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0009");
 
88
 
 
89
(:~
 
90
 :It is a dynamic error if a pending update list contains two renaming update primitives on the same object and with the same selector.
 
91
:)
 
92
declare variable $jerr:JNUP0010 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0010");
 
93
 
 
94
(:~
 
95
 :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.
 
96
:)
 
97
declare variable $jerr:JNTY0011 as xs:QName := fn:QName($jerr:NS, "jerr:JNTY0011");
 
98
 
 
99
(:~
41
100
 :It is a dynamic error to serialize a sequence of less
42
101
 : or more than one item with the JSON output method if the
43
 
 : cloudscript-serialization-multiple-items is set to no.
 
102
 : jsoniq-serialization-multiple-items is set to no.
44
103
 : 
45
104
:)
46
105
declare variable $jerr:JNSE0012 as xs:QName := fn:QName($jerr:NS, "jerr:JNSE0012");
48
107
(:~
49
108
 :It is a dynamic error to serialize an atomic value not
50
109
 : supported by JSON or a node with the JSON output method and with
51
 
 : the cloudscript-serialization-extensions serialization parameter
 
110
 : the jsoniq-serialization-extensions serialization parameter
52
111
 : set to false.
53
112
:)
54
113
declare variable $jerr:JNSE0013 as xs:QName := fn:QName($jerr:NS, "jerr:JNSE0013");
60
119
declare variable $jerr:JNSE0014 as xs:QName := fn:QName($jerr:NS, "jerr:JNSE0014");
61
120
 
62
121
(:~
63
 
 :Expression computing the value of a pair does not return exactly
64
 
 : one item.
65
 
:)
66
 
declare variable $jerr:JNTY0002 as xs:QName := fn:QName($jerr:NS, "jerr:JNTY0002");
 
122
 :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.
 
123
:)
 
124
declare variable $jerr:JNUP0016 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0016");
 
125
 
 
126
(:~
 
127
 : It is a dynamic error if the value in a replace expression is not exactly a single item.
 
128
:)
 
129
declare variable $jerr:JNUP0017 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0017");
67
130
 
68
131
(:~
69
132
 :objects or arrays don't have a string value
71
134
declare variable $jerr:JNTY0003 as xs:QName := fn:QName($jerr:NS, "jerr:JNTY0003");
72
135
 
73
136
(:~
74
 
 :objects or arrays don't have a typed value
75
 
:)
76
 
declare variable $jerr:JNTY0004 as xs:QName := fn:QName($jerr:NS, "jerr:JNTY0004");
77
 
 
78
 
(:~
79
 
 :wrong type for object/array selector in update expr
80
 
:)
81
 
declare variable $jerr:JNTY0007 as xs:QName := fn:QName($jerr:NS, "jerr:JNTY0007");
82
 
 
83
 
(:~
84
 
 :error raised by node constructor or updating expression indicating that a JSON item cannot appear in the corresponding content sequence
85
 
:)
86
 
declare variable $jerr:JNTY0011 as xs:QName := fn:QName($jerr:NS, "jerr:JNTY0011");
87
 
 
88
 
(:~
89
 
 :error raised by object constructor
90
 
:)
91
 
declare variable $jerr:JNDY0003 as xs:QName := fn:QName($jerr:NS, "jerr:JNDY0003");
92
 
 
93
 
(:~
94
137
 :parser errors raised by the JSONIQLoader
95
138
:)
96
 
declare variable $jerr:JSDY0040 as xs:QName := fn:QName($jerr:NS, "jerr:JSDY0040");
97
 
 
98
 
(:~
99
 
 :duplicate pair to insert
100
 
:)
101
 
declare variable $jerr:JNUP0005 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0005");
102
 
 
103
 
(:~
104
 
 :pair to insert already in object
105
 
:)
106
 
declare variable $jerr:JNUP0006 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0006");
107
 
 
108
 
(:~
109
 
 :pair to delete not in object
110
 
:)
111
 
declare variable $jerr:JNUP0007 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0007");
112
 
 
113
 
(:~
114
 
 :duplicate pair to replace
115
 
:)
116
 
declare variable $jerr:JNUP0008 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0008");
117
 
 
118
 
(:~
119
 
 :pair to replace not in object
120
 
:)
121
 
declare variable $jerr:JNUP0009 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0009");
122
 
 
123
 
(:~
124
 
 :duplicate pair to rename
125
 
:)
126
 
declare variable $jerr:JNUP0010 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0010");
127
 
 
128
 
(:~
129
 
 :pair to rename not in object
130
 
:)
131
 
declare variable $jerr:JNUP0011 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0011");
132
 
 
133
 
(:~
134
 
 :pair to rename already in object
135
 
:)
136
 
declare variable $jerr:JNUP0012 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0012");
137
 
 
138
 
(:~
139
 
 :position to insert not in array
140
 
:)
141
 
declare variable $jerr:JNUP0018 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0018");
142
 
 
143
 
(:~
144
 
 :position to delete not in array
145
 
:)
146
 
declare variable $jerr:JNUP0020 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0020");
147
 
 
148
 
(:~
149
 
 :position to replace not in array
150
 
:)
151
 
declare variable $jerr:JNUP0021 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0021");
152
 
 
153
 
(:~
154
 
 :duplicate position to replace
155
 
:)
156
 
declare variable $jerr:JNUP0022 as xs:QName := fn:QName($jerr:NS, "jerr:JNUP0022");
 
 
b'\\ No newline at end of file'
 
139
declare variable $jerr:JSDY0040 as xs:QName := fn:QName($jerr:NS, "jerr:JSDY0040");
 
 
b'\\ No newline at end of file'