You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exist-core/src/main/java/org/exist/xquery/ErrorCodes.java
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -243,6 +243,42 @@ public class ErrorCodes {
243
243
244
244
publicstaticfinalErrorCodeXTSE0165 = newW3CErrorCode("XTSE0165","It is a static error if the processor is not able to retrieve the resource identified by the URI reference [ in the href attribute of xsl:include or xsl:import] , or if the resource that is retrieved does not contain a stylesheet module conforming to this specification.");
245
245
246
+
/* New Error Codes https://www.w3.org/TR/xquery-update-30/#id-new-error-codes */
247
+
publicstaticfinalErrorCodeXUST0001 = newW3CErrorCode("XUST0001", "It is a static error if an updating expression is used where the expression category rules prohibit it.");
248
+
publicstaticfinalErrorCodeXUST0003 = newW3CErrorCode("XUST0003", "It is a static error if a Prolog contains more than one revalidation declaration.");
249
+
publicstaticfinalErrorCodeXUTY0004 = newW3CErrorCode("XUTY0004", "It is a type error if the insertion sequence of an insert expression contains an attribute node following a node that is not an attribute node.");
250
+
publicstaticfinalErrorCodeXUTY0005 = newW3CErrorCode("XUTY0005", "In an insert expression where into, as first into, or as last into is specified, it is a type error if the target expression returns a non-empty result that does not consist of a single element or document node.");
251
+
publicstaticfinalErrorCodeXUTY0006 = newW3CErrorCode("XUTY0006", "In an insert expression where before or after is specified, it is a type error if the target expression returns a non-empty result that does not consist of a single element, text, comment, or processing instruction node.");
252
+
publicstaticfinalErrorCodeXUTY0007 = newW3CErrorCode("XUTY0007", "It is a type error if the target expression of a delete expression does not return a sequence of zero or more nodes.");
253
+
publicstaticfinalErrorCodeXUTY0008 = newW3CErrorCode("XUTY0008", "In a replace expression, it is a type error if the target expression returns a non-empty result that does not consist of a single element, attribute, text, comment, or processing instruction node.");
254
+
publicstaticfinalErrorCodeXUDY0009 = newW3CErrorCode("XUDY0009", "In a replace expression where value of is not specified, it is a dynamic error if the node returned by the target expression does not have a parent.");
255
+
publicstaticfinalErrorCodeXUTY0010 = newW3CErrorCode("XUTY0010", "In a replace expression where value of is not specified and the target is an element, text, comment, or processing instruction node, it is a type error if the replacement sequence does not consist of zero or more element, text, comment, or processing instruction nodes.");
256
+
publicstaticfinalErrorCodeXUTY0011 = newW3CErrorCode("XUTY0011", "In a replace expression where value of is not specified and the target is an attribute node, it is a type error if the replacement sequence does not consist of zero or more attribute nodes.");
257
+
publicstaticfinalErrorCodeXUTY0012 = newW3CErrorCode("XUTY0012", "In a rename expression, it is a type error if the target expression returns a non-empty result that does not consist of a single element, attribute, or processing instruction node.");
258
+
publicstaticfinalErrorCodeXUTY0013 = newW3CErrorCode("XUTY0013", "In a copy modify expression, it is a type error if a source expression in the copy clause does not return a single node.");
259
+
publicstaticfinalErrorCodeXUDY0014 = newW3CErrorCode("XUDY0014", "In a copy modify expression, it is a dynamic error if the modify clause modifies any node that was not created by the copy clause.");
260
+
publicstaticfinalErrorCodeXUDY0015 = newW3CErrorCode("XUDY0015", "It is a dynamic error if any node is the target of more than one rename expression within the same query.");
261
+
publicstaticfinalErrorCodeXUDY0016 = newW3CErrorCode("XUDY0016", "It is a dynamic error if any node is the target of more than one replace expression (without value of being specified) within the same query.");
262
+
publicstaticfinalErrorCodeXUDY0017 = newW3CErrorCode("XUDY0017", "It is a dynamic error if any node is the target of more than one replace value of expression within the same query.");
263
+
publicstaticfinalErrorCodeXUDY0018 = newW3CErrorCode("XUDY0018", "It is a dynamic error if a function that was declared to be external but not updating returns a non-empty pending update list.");
264
+
publicstaticfinalErrorCodeXUDY0021 = newW3CErrorCode("XUDY0021", "It is a dynamic error if the XDM instance that would result from applying all the updates in a query violates any constraint specified in [XQuery and XPath Data Model (XDM) 3.0]. In this case, none of the updates in the query are made effective.");
265
+
publicstaticfinalErrorCodeXUTY0022 = newW3CErrorCode("XUTY0022", "It is a type error if an insert expression specifies the insertion of an attribute node into a document node.");
266
+
publicstaticfinalErrorCodeXUDY0023 = newW3CErrorCode("XUDY0023", "It is a dynamic error if an insert, replace, or rename expression affects an element node by introducing a new namespace binding that conflicts with one of its existing namespace bindings.");
267
+
publicstaticfinalErrorCodeXUDY0024 = newW3CErrorCode("XUDY0024", "It is a dynamic error if the effect of a set of updating expressions is to introduce conflicting namespace bindings into an element node.");
268
+
publicstaticfinalErrorCodeXUDY0025 = newW3CErrorCode("XUDY0025", "(Not currently used.)");
269
+
publicstaticfinalErrorCodeXUST0026 = newW3CErrorCode("XUST0026", "It is a static error if a revalidation declaration in a Prolog specifies a revalidation mode that is not supported by the current implementation.");
270
+
publicstaticfinalErrorCodeXUDY0027 = newW3CErrorCode("XUDY0027", "It is a dynamic error if the target expression of an insert, replace, or rename expression evaluates to an empty sequence.");
271
+
publicstaticfinalErrorCodeXUDY0029 = newW3CErrorCode("XUDY0029", "In an insert expression where before or after is specified, it is a dynamic error if the node returned by the target expression does not have a parent.");
272
+
publicstaticfinalErrorCodeXUDY0030 = newW3CErrorCode("XUDY0030", "It is a dynamic error if an insert expression specifies the insertion of an attribute node before or after a child of a document node.");
273
+
publicstaticfinalErrorCodeXUDY0031 = newW3CErrorCode("XUDY0031", "It is a dynamic error if multiple calls to fn:put in the same snapshot specify the same URI (after resolution of relative URIs).");
274
+
publicstaticfinalErrorCodeXUST0032 = newW3CErrorCode("XUST0032", "It is a static error if an %updating or %simple annotation is used on a VarDecl.");
275
+
publicstaticfinalErrorCodeXUST0033 = newW3CErrorCode("XUST0033", "It is a static error to use more than one %updating or %simple annotation in a given annotation set.");
276
+
publicstaticfinalErrorCodeXUST0034 = newW3CErrorCode("XUST0034", "It is a static error to use more than one updating function assertion in the function assertionXQ30 set of a FunctionTest.");
277
+
publicstaticfinalErrorCodeXUDY0037 = newW3CErrorCode("XUDY0037", "It is a dynamic error if the pending update list returned by the modify expression of a CopyModifyExpr or TransformWithExpr contains a upd:put update primitive.");
278
+
publicstaticfinalErrorCodeXUDY0038 = newW3CErrorCode("XUDY0038", "It is a dynamic error if the function returned by the PrimaryExpr of a dynamic function invocation is an updating function, and the dynamic function invocation is not a partial function applicationXQ30.");
279
+
publicstaticfinalErrorCodeFOUP0001 = newW3CErrorCode("FOUP0001", "It is a dynamic error if the first operand of fn:put is not a node of a supported kind.");
280
+
publicstaticfinalErrorCodeFOUP0002 = newW3CErrorCode("FOUP0002", "It is a dynamic error if the second operand of fn:put is not a valid lexical representation of the xs:anyURI type.");
281
+
246
282
/* eXist specific XQuery and XPath errors
247
283
*
248
284
* Codes have the format [EX][XQ|XP][DY|SE|ST][nnnn]
0 commit comments