Changes

Jump to navigation Jump to search
6,778 bytes removed ,  17:06, 22 November 2017
no edit summary
This article is part of the [[QueryingXQuery|Query XQuery Portal]].It summarizes all error the codes of errors that may be thrown are raised by the BaseX standard features and functions of XQuery processor. As the original specifications are pretty comprehensive, we tried our best to make this overview comprehensible to a wider range of readers.
As the original specifications are rather bulky and meticulous, we tried our best to make this overview comprehensible to a widerrange of readers. The following tables list the error codes thatare known to BaseX, a short description, and examples of queriesraising that errors. Errors that are specific to BaseX can be found in the descriptions of the respective [[Module Library|modules]].
Original definitions of the error codes are found in the[http://www.w3.org/TR/xquery-30/ XQuery 3.0],[http://www.w3.org/TR/xpath-functions-30/ XQuery 3.0 Functions],[http://www.w3.org/TR/xquery-update-10/ XQuery 1.0 Update],[http://www.w3.org/TR/xpath-full-text-10/ XQuery 1.0 Full Text],and [http://www.expath.org/spec/http-client EXPath HTTP]Specifications.
==BaseX Static Errors==
Error Codes* Namespace URI: <code><nowiki>http://www.w3.org/2005/xqt-errors</nowiki></code>* Namespace prefix: <code>BASXerr</code>* Codes: {{Code|XPST}}, {{Code|XQST}}
{| class="wikitable" width="100%"
! width="5%"|Code! width="60%"|Description! width="35%"|Examples|- valign="top" scope="row"|<code>BASX0001</code>| The specified index type is unknown, or not available.|<code>db:info("unknown")</code>|- valign="top" scope="row"|<code>BASX0002</code>| The specified node must reference a database node.|<code><xml/>/db:text("word")</code>|- valign="top" scope="row"|<code>BASX0003</code>| The specified database was not found.|<code>db:open('unknown')</code>|- valign="top" scope="row"|<code>BASX0004</code>| The database node referenced by a function is out of range.|<code>db:open-pre('database', -1)</code>|- valign="top" scope="row"|<code>BASX0005</code>| The current user has no [[User Management|permissions]] to execute an expression.|<code>file:delete('file.txt')</code>: ''Admin'' rights needed.|- valign="top" scope="row"|<code>BASX0006</code>| The query was timed out. The <code>[[Options#TIMEOUT|TIMEOUT]]</code> option can be modified in the client/server architecture. This error is only raised by the internal BaseX Java function <code>QueryProcess.next(Item)</code>.||- valign="top" scope="row"|<code>BASX0007</code>| Nodes were expected as query result. This error is only raised by the internal BaseX Java function <code>QueryProcessor.queryNodes()</code>.||- valign="top" scope="row"|<code>BASX0008</code>| A database addressed with the <code>doc()</code> function contains more than one document.| <code>doc('collection')</code>|- valign="top" scope="row"|<code>BASX0009</code>| The specified event is unknown.| <code>db:event('unknown', 'event')</code>|- valign="top" scope="row"|<code>BASX0010</code>| The specified database option is unknown.| <code>declare option db:xyz "no"; 1</code>|- valign="top" scope="row"|<code>BASX0011</code>| The specified XSLT parameter XSLT parameter is unknown.| <code>xslt:transform('doc.xml', 'input.xslt', '<INVALID/>')</code>|- valign="top" scope="row"|<code>BASX0011</code>| The specified XSLT parameter XSLT parameter is unknown.| <code>xslt:transform('doc.xml', 'input.xslt', '<INVALID/>')</code>|- valign="top" scope="row"|<code>BASX0012</code>| A single document is expected as replace target.| <code>db:replace('db', 'unknown.xml', '<a/>')</code>|- valign="top" scope="row"|<code>BASX0013</code>| An empty rename sting was specified.| <code>db:rename('db', 'old.xml', '')</code>|- valign="top" scope="row"|<code>BASX0014</code>| An error occurred while optimizing the database.| <code>db:optimize('db')</code>|- valign="top" scope="row"|<code>BASX0015</code>| The specified input text cannot be parsed as JSON.| <code>json:parse('{{}}')</code>|- valign="top" scope="row"|<code>BASX0016</code>| The specified input text cannot be serialized to a JSON document.| <code>json:serialize(<invalid/>)</code>|- valign="top" scope="row"|<code>BASX0017</code>| Invalid values were used for fn:partial-apply().| <code></code>|- valign="top" scope="row"|<code>BASX0018</code>| Bytes could not be converted to a string.||} ==Static Errors== Error Codes: <code>XPST</code>, <code>XQST</code> {| class="wikitable" width="100%"! width="5%110"|Code! width="6050%"|Description! width="45%"|Examples
|- valign="top" scope="row"
|<code>XPST0003</code>
|- valign="top" scope="row"
|<code>XPST0005</code>
|An expression will never return any results, no matter what input will be processedis provided.
|<code>doc('input')/..</code>
|- valign="top" scope="row"
|- valign="top" scope="row"
|<code>XPST0017</code>
| • The specified function is unknown, or<br />• it uses the wrong number of arguments, or, when calling Java functions:<br />• there is more than one function with the same number of arguments.
|<code>unknown()<hr/>count(1,2,3)</code>
|- valign="top" scope="row"
|<code>XPST0051</code>
| An unknown QName is used in a ''sequence type'' (e.g. in the target type of the <code>{{Code|cast</code> }} expression).
|<code>1 instance of x<hr/>"test"&nbsp;cast&nbsp;as&nbsp;xs:itr</code>
|- valign="top" scope="row"
|<code>XPST0080</code>
| <code>xs:NOTATION</code> or <code>{{Code|xs:anyAtomicType</code> }} is used as target type of <code>{{Code|cast</code> }} or <code>{{Code|castable</code>}}.
|<code>1 castable as xs:NOTATION</code>
|- valign="top" scope="row"
|- valign="top" scope="row"
|<code>XQST0076</code>
| A <code>{{Code|group by</code> }} or <code>{{Code|order by</code> }} clause specifies an unknown collation.
|<code>for $i in 1 to 10<br/>order by $i collation "unknown"<br/>return $i</code>
|- valign="top" scope="row"
|- valign="top" scope="row"
|<code>XQST0089</code>
| Two variables in a <code>{{Code|for</code> }} or <code>{{Code|let</code> }} clause have the same name.
|<code>for $a at $a in 1 return $i</code>
|- valign="top" scope="row"
|- valign="top" scope="row"
|<code>XQST0094</code>
| <code>group by</code> references a variable that has not been declared before.
|<code>for $a in 1 group by $b return $a</code>
|- valign="top" scope="row"
|<code>XQST0097</code>
| A <code>{{Code|decimal-format</code> }} property is invalid.
|<code>declare default decimal-format digit = "xxx"; 1</code>
|- valign="top" scope="row"
|<code>XQST0098</code>
| A single <code>{{Code|decimal-format</code> }} character was assigned to multiple properties.
|<code>declare default decimal-format digit = "%"; 1</code>
|- valign="top" scope="row"
|<code>declare context item ...</code>
|- valign="top" scope="row"
|<code>XQST0107XQST0106</code>| The initializer of the context item depends on itselfAn annotation has been declared twice in a variable or function declaration.|<code>declare context item := %updating %updating function ...; ()</code>
|- valign="top" scope="row"
|<code>XQST0108</code>
|}
==Type Errors==
Error Codes* Namespace URI: <code>XPTY<nowiki>http://www.w3.org/2005/xqt-errors</nowiki></code>, * Namespace prefix: <code>XQTYerr</code>* Codes: {{Code|XPTY}}, {{Code|XQTY}}
{| class="wikitable" width="100%"
! width="5%110"|Code! width="6050%"|Description! width="45%"|Examples
|- valign="top" scope="row"
|<code>XPTY0004</code>
|- valign="top" scope="row"
|<code>XQTY0105</code>
| The A function item has been specified as content sequence of an element constructor contains a function.|<code>element x { function() <X>{'a'} false#0 }</X></code>
|}
==Dynamic Errors==
Error Codes* Namespace URI: <code>XPDY<nowiki>http://www.w3.org/2005/xqt-errors</nowiki></code>, * Namespace prefix: <code>XQDYerr</code>* Codes: {{Code|XPDY}}, {{Code|XQDY}}
{| class="wikitable" width="100%"
! width="5%110"|Code! width="6050%"|Description! width="35%"|Examples
|- valign="top" scope="row"
|<code>XPDY0002</code>
|- valign="top" scope="row"
|<code>XPDY0050</code>
| • The operand type of a <code>{{Code|treat</code> }} expression does not match the type of the argument, or<br/>• the root of the context item must be a document node.
|<code>"string" treat as xs:int<hr/>"string"[/]</code>
|-
|- valign="top" scope="row"
|<code>XQDY0095</code>
| A sequence with more than one item was bound to a <code>{{Code|group by</code> }} clause.
|<code>let $a := (1,2) group by $a return $a</code>
|- valign="top" scope="row"
|}
==Functions Errors==
Error Codes* Namespace URI: <code>FOAR<nowiki>http://www.w3.org/2005/code>, xqt-errors<code/nowiki>FOCA</code>, * Namespace prefix: <code>FOCHerr</code>* Codes: {{Code|FOAR}}, {{Code|FOCA}}, {{Code|FOCH}}, <code>{{Code|FODC</code>}}, <code>{{Code|FODF</code>}}, <code>{{Code|FODT</code>}}, <code>{{Code|FOER</code>}}, <code>{{Code|FOFD</code>}}, <code>{{Code|FONS</code>}}, <code>{{Code|FORG</code>}}, <code>{{Code|FORX</code>}}, <code>{{Code|FOTY</code>}}, <code>{{Code|FOUT</code>}}
{| class="wikitable" width="100%"
! width="5%110"|Code! width="50%"|Description! width="45%"|Examples
|- valign="top" scope="row"
|<code>FOAR0001</code>
|- valign="top" scope="row"
|<code>FOCA0005</code>
| <code>"NaN"</code> is supplied to duration operations.
|<code>xs:yearMonthDuration("P1Y") * xs:double("NaN")</code>
|-
|- valign="top" scope="row"
|<code>FODC0001</code>
| The argument specified in <code>{{Code|fn:id()</code> }} or <code>{{Code|fn:idref()</code> }} must have a document node as root.
|<code>id("id0", <xml/>)</code>
|- valign="top" scope="row"
|- valign="top" scope="row"
|<code>FODC0006</code>
| The string passed to <code>{{Code|fn:parse-xml()</code> }} is not well-formed.
|<code>parse-xml("<x/")</code>
|- valign="top" scope="row"
|<code>FODC0007</code>
| The base URI passed to <code>{{Code|fn:parse-xml()</code> }} is invalid.
|<code>parse-xml("<x/>", ":")</code>
|-
|- valign="top" scope="row"
|<code>FODF1280</code>
| The name of the decimal format passed to <code>{{Code|fn:format-number()</code> }} is invalid.
|<code>format-number(1, "0", "invalid")</code>
|- valign="top" scope="row"
|<code>FODF1310</code>
| The picture string passed to <code>{{Code|fn:format-number()</code> }} is invalid.
|<code>format-number(1, "invalid")</code>
|-
| colspan=3 style="background-color:white;"|
|- valign="top" scope="row"
|<code>FODT0001</code>
| An arithmetic duration operation causes an over- or underflow.
|<code>xs:date('2000-01-01') + xs:duration('P99999Y')</code>
|- valign="top" scope="row"
|<code>FODT0002</code>
|- valign="top" scope="row"
|<code>FOER0000</code>
| Error triggered by the <code>{{Code|fn:error()</code> }} function.
|<code>error()</code>
|-
|- valign="top" scope="row"
|<code>FOFD1340</code>
| The picture string passed to <code>{{Code|fn:format-date()</code>}}, <code>{{Code|fn:format-time()</code> }} or <code>{{Code|fn:format-dateTime()</code> }} is invalid.
|<code>format-date(current-date(), "[]")</code>
|- valign="top" scope="row"
|<code>FOFD1350</code>
| The picture string passed to <code>{{Code|fn:format-date()</code>}}, <code>{{Code|fn:format-time()</code> }} or <code>{{Code|fn:format-dateTime()</code> }} specifies an non-available component.
|<code>format-time(current-time(), "[Y2]")</code>
|-
|- valign="top" scope="row"
|<code>FORG0002</code>
| The URI passed to <code>{{Code|fn:resolve-URI()</code> }} is invalid.
|<code>resolve-URI(":")</code>
|- valign="top" scope="row"
|<code>FORG0003</code>
| <code>fn:zero-or-one()</code> was called with more than one item.
|<code>zero-or-one((1, 2))</code>
|- valign="top" scope="row"
|<code>FORG0004</code>
| <code>fn:one-or-more()</code> was called with zero items.
|<code>one-or-more(())</code>
|- valign="top" scope="row"
|<code>FORG0005</code>
| <code>fn:exactly-one()</code> was called with zero or more than one item.
|<code>exactly-one((1, 2))</code>
|- valign="top" scope="row"
|- valign="top" scope="row"
|<code>FORG0008</code>
| The arguments passed to <code>{{Code|fn:dateTime()</code> }} have different timezones.
|<code>dateTime(xs:date("2001-01-01+01:01"), current-time())</code>
|-
| The replacement string of a regular expression is invalid.
|<code>replace("input", "match", "\")</code>
|-
| colspan=3 style="background-color:white;"|
|- valign="top" scope="row"
|<code>FOTY0012</code>
| An item has no typed value.
|<code>count#1</code>
|- valign="top" scope="row"
|<code>FOTY0013</code>
| Functions items cannot be atomized, have no defined equality, and have no string representation.
|<code>data(false#0)</code>
|- valign="top" scope="row"
|<code>FOTY0014</code>
| Function items have no string representation.
|<code>string(map {})</code>
|- valign="top" scope="row"
|<code>FOTY0015</code>
| Function items cannot be compared.
|<code>deep-equal(false#0, true#0)</code>
|-
| colspan=3 style="background-color:white;"|
|<code>FOUT1170</code>
| Function argument cannot be used to retrieve a text resource.
|<code>unparsed-text(':')</code>
|- valign="top" scope="row"
|<code>FOUT1170FOUT1190</code>
| Encoding to retrieve a text resource is invalid or not supported.
|<code>unparsed-text('file.txt', 'InvalidEncoding')</code>
|}
....to be added: FOTY0012-0015 ==Serialization Errors==
Error Codes* Namespace URI: <code>SEPM<nowiki>http://www.w3.org/2005/code>, xqt-errors<code/nowiki>SERE</code>, * Namespace prefix: <code>SESUerr</code>* Codes: {{Code|SEPM}}, {{Code|SERE}}, {{Code|SESU}}
{| class="wikitable" width="100%"
! width="5%110"|Code! width="50%"|Description! width="45%"|Examples
|- valign="top" scope="row"
|<code>SESU0007</code>
|- valign="top" scope="row"
|<code>SEPM0009</code>
| <code>omit-xml-declaration</code> is set to <code>{{Code|yes</code>}}, and <code>{{Code|standalone</code> }} has a value other than <code>{{Code|omit</code>}}.
|
|- valign="top" scope="row"
|<code>SEPM0010</code>
| <code>method</code> is set to <code>{{Code|xml</code>}}, <code>{{Code|undeclare-prefixes</code> }} is set to <code>{{Code|yes</code>}}, and <code>{{Code|version</code> }} is set to <code>{{Code|1.0</code>}}.
|
|- valign="top" scope="row"
|<code>SERE0014</code>
| <code>method</code> is set to <code>{{Code|html</code>}}, and an invalid HTML character is found.
|
|- valign="top" scope="row"
|<code>SERE0015</code>
| <code>method</code> is set to <code>{{Code|html</code>}}, and a closing bracket (&gt;) appears inside a processing instruction.
|
|- valign="top" scope="row"
|<code>SEPM0016</code>
| A specified parameter is unknown or has an invalid value.
| <code>declare option output:indent "nope"; 1</code>||- valign="top" scope="row"|<code>SEPM0017</code>| The definition of serialization parameter is invalid.
|
|}
==Update Errors==
Error Codes* Namespace URI: <code>FOUP<nowiki>http://www.w3.org/2005/code>, xqt-errors<code/nowiki>XUDY</code>, * Namespace prefix: <code>XUSTerr</code>* Codes: {{Code|FOUP}}, {{Code|XUDY}}, {{Code|XUST}}, <code>{{Code|XUTY</code>}}
{| class="wikitable" width="100%"
! width="5%110"|Code! width="50%"|Description! width="45%"|Examples
|- valign="top" scope="row"
|<code>FOUP0001</code>
| The first argument of <code>{{Code|fn:put()</code> }} must be a document node or element.
|<code>fn:put(text { 1 }, 'file.txt')</code>
|- valign="top" scope="row"
|<code>FOUP0002</code>
| The second argument of <code>{{Code|fn:put()</code> }} is not a valid URI.
|<code>fn:put(<a/>, '//')</code>
|-
|- valign="top" scope="row"
|<code>XUDY0014</code>
| The expression updated by the <code>{{Code|modify</code> }} clause was not created by the <code>{{Code|copy</code> }} clause.
|<code>let $a := doc('a') return copy $b := $a modify delete node $a/* return $b</code>
|- valign="top" scope="row"
|<code>XUDY0015</code>
| In a <code>{{Code|rename</code> }} expression, a target is renamed more than once.
|<code>let $a := <xml/> return (rename node $a as 'a', rename node $a as 'b')</code>
|- valign="top" scope="row"
|<code>XUDY0016</code>
| In a <code>{{Code|replace</code> }} expression, a target is replaced more than once.
|<code>let $a := <x>x</x>/node() return (replace node $a with <a/>, replace node $a with <b/>)</code>
|- valign="top" scope="row"
|<code>XUDY0017</code>
| In a <code>{{Code|replace value of</code> }} expression, a target is replaced more than once.
|<code>let $a := <x/> return (replace value of node $a with 'a', replace value of node $a with 'a')</code>
|- valign="top" scope="row"
|- valign="top" scope="row"
|<code>XUDY0031</code>
| Multiple calls to <code>{{Code|fn:put()</code> }} address the same URI.
|<code>for $i in 1 to 3 return put(<a/>, 'file.txt')</code>
|-
|- valign="top" scope="row"
|<code>XUST0002</code>
| An updating expression is expected in the <code>{{Code|modify</code> }} clause or an updating function.
|<code>copy $a := <x/> modify 1 return $a</code>
|- valign="top" scope="row"
|- valign="top" scope="row"
|<code>XUTY0005</code>
| A single element or document node is expected as target of an <code>{{Code|insert</code> }} expression.
|<code>insert node <new/> into attribute a { "" }</code>
|- valign="top" scope="row"
|<code>XUTY0006</code>
| A single element, text, comment or processing instruction is expected as target of an <code>{{Code|insert before/after</code> }} expression.
|<code>insert node <new/> after attribute a { "" }</code>
|- valign="top" scope="row"
|- valign="top" scope="row"
|<code>XUTY0008</code>
| A single element, text, attribute, comment or processing instruction is expected as target of a <code>{{Code|replace</code> }} expression.
|<code>replace node document { <a/> } with <b/></code>
|- valign="top" scope="row"
|<code>XUTY0010</code>
| In a <code>{{Code|replace</code> }} expression, in which no attributes are targeted, the replacing nodes must not be attributes as well.
|<code>replace node <a><b/></a>/b with attribute size { 1 }</code>
|- valign="top" scope="row"
|<code>XUTY0011</code>
| In the <code>{{Code|replace</code> }} expression, in which attributes are targeted, the replacing nodes must be attributes as well.
|<code>replace node <e a=""/>/@a with <a/></code>
|- valign="top" scope="row"
|<code>XUTY0012</code>
| In a <code>{{Code|rename</code> }} expression, the target nodes must be an element, attribute or processing instruction.
|<code>rename node text { 1 } as <x/></code>
|- valign="top" scope="row"
|<code>XUTY0013</code>
| An expression in the <code>{{Code|copy</code> }} clause must return a single node.
|<code>copy $c := (<a/>, <b/>) modify () return $c</code>
|- valign="top" scope="row"
|}
==Full-Text Errors==
Error Codes* Namespace URI: <code>FTDY<nowiki>http://www.w3.org/2005/xqt-errors</nowiki></code>, * Namespace prefix: <code>FTSTerr</code>* Codes: {{Code|FTDY}}, {{Code|FTST}}
{| class="wikitable" width="100%"
! width="5%110"|Code! width="50%"|Description! width="45%"|Examples
|- valign="top" scope="row"
|<code>FTDY0016</code>
|- valign="top" scope="row"
|<code>FTDY0017</code>
| The <code>{{Code|not in</code> }} operator contains a ''string exclude''.
|<code>'a' contains text 'a' not in (ftnot 'a')</code>
|- valign="top" scope="row"
|-
| colspan=3 style="background-color:white;"|
|- valign="top" scope="row"
|<code>FTST0000</code>
| BaseX specific: Either wildcard or the [[Full-Text#Fuzzy_Querying|fuzzy option]] can be chosen at the same time.
|<code>'a' contains text 'a' using wildcards using fuzzy</code>
|- valign="top" scope="row"
|<code>FTST0007</code>
| The full-text expression contains an ignore option (the <code>{{Code|ignore option</code> }} is not supported by BaseX).
|<code>'a' contains text 'a' without content 'x'</code>
|- valign="top" scope="row"
|- valign="top" scope="row"
|<code>FTST0019</code>
| A match option was defined specified more than once.
|<code>'a' contains text 'a' using stemming using stemming</code>
|}
==[[ZIP Functions]] BaseX Errors==
Error Codes* Namespace URI: <code>FOZP<nowiki>http://basex.org</nowiki></code>* Namespace prefix: <code>basex</code>
{| class="wikitable" width="100%"
! width="5%110"|Code! width="50%"|Description! width="45%"|Examples
|- valign="top" scope="row"
|<code>FOZP0001annotation</code>| The specified path does not existAnnotation errors.|<code>zip%basex:entriesxyz function('unknown.zip'){ 123 }</code>
|- valign="top" scope="row"
|<code>FOZP0002doc</code>| Entries in the description of The argument specified via fn:doc must yield a ZIP archive are unknown, missing, or invalidsingle document.|<code>zip:zip-filedoc(<file xmlns="unknown" href='target.zipdb-collection'/>)</code>
|- valign="top" scope="row"
|<code>FOZP0003error</code>| ZIP file extraction or creation fails for some other reason (Generic error, which is e.g.: new ZIP file contains no entries, or duplicates) g.||} ==raised by [[Cryptographic FunctionsJava Bindings#Integration|Java bindings]] Errors=.|<code>import module namespace qmError Codes'java: org.basex.query.func.QueryModuleTest';<codebr/>FOCXqm:error()</code> {| class="wikitable" width="100%"! width="5%"|Code! width="50%"|Description! width="45%"|Examples
|- valign="top" scope="row"
|<code>FOCX0001function</code>| Canonicalization algorithm is not supportedFunction items cannot be cached.|<code>db:output(true#0)</code>
|- valign="top" scope="row"
|<code>FOCX0002http</code>| Digest algorithm is not supportedThe function was called outside an HTTP servlet context.|<code>session:get('abc')</code>
|- valign="top" scope="row"
|<code>FOCX0003</code>| Signature algorithm is not supported.|<code></code>|- valign="top" scope="row"|<code>FOCX0004</code>| XPath expression is invalid.|<code></code>|- valign="top" scope="row"|<code>FOCX0005</code>| Invalid name for $digital-certificate root.|<code></code>|- valign="top" scope="row"|<code>FOCX0006</code>| Invalid child element of $digital-certificate.|<code></code>|- valign="top" scope="row"|<code>FOCX0007</code>| Key store is null.|<code></code>|- valign="top" scope="row"|<code>FOCX0008</code>| I/O error while reading keystore.|<code></code>|- valign="top" scope="row"|<code>FOCX0009</code>| Permission denied to read keystore.|<code></code>|- valign="top" scope="row"|<code>FOCX0010</code>| Keystore URL is invalid.|<code></code>|- valign="top" scope="row"|<code>FOCX0011</code>| Keystore type is not supported.|<code></code>|- valign="top" scope="row"|<code>FOCX0012</code>| Cannot find key for alias in given keystore.|<code></code>|- valign="top" scope="row"|<code>FOCX0013</code>| Hashing algorithm is not supported.|<code></code>|- valign="top" scope="row"|<code>FOCX0014</code>| Encoding method is not supported.|<code></code>|- valign="top" scope="row"|<code>FOCX0015</code>| Cannot find signature element.|<code></code>|- valign="top" scope="row"|<code>FOCX0016</code>| No such padding.|<code></code>|- valign="top" scope="row"|<code>FOCX0017</code>| Incorrect padding.|<code></code>|- valign="top" scope="row"|<code>FOCX0018</code>| Encryption type is not supported.|<code></code>|- valign="top" scope="row"|<code>FOCX0019</code>| Secret key is invalid.|<code></code>|- valign="top" scope="row"|<code>FOCX0020</code>| Illegal block size.|<code></code>|- valign="top" scope="row"|<code>FOCX0021</code>| Algorithm is not supported.|<code></code>|- valign="top" scope="row"|<code>FOCX0022</code>| Decryption type is not supported.|<code></code>|- valign="top" scope="row"|<code>FOCX9999</code>| Signature type is not supported.|<code></code>|- valign="top" scope="row"|<code>FOCX9998</code>| Not (yet) supported.|<code></code>|- valign="top" scope="row"|<code>FOCX9997</code>| Algorithm not compatible with encryption type.|<code></code>|- valign="top" scope="row"|<code>FOCX9996</code>| IO Exception.|<code></code>|- valign="top" scope="row"|<code>FOCX9995</code>| Keystore exception.|<code></code>|- valign="top" scope="row"|<code>FOCX9994</code>| Signature exception.|<code></code>|- valign="top" scope="row"|<code>FOCX9993</code>| Invalid algorithm.|<code></code>|- valign="top" scope="row"|<code>FOCX9992</code>| Invalid certificate alias.|<code></code>|} ==[[File Functions]] Errors== Error Codes: <code>FOFL</code> {| class="wikitable" width="100%"! width="5%"|Code! width="50%"|Description! width="45%"|Examples|- valign="top" scope="row"|<code>FOFL0001options</code>| The specified path does not exist.|<code>file:size('database option is unknown.txt')</code>|- valign="top" scope="row"|<code>FOFL0002</code>| The specified path does already exist.|<code>file:create-directory('existing-directory')</code>|- valign="top" scope="row"|<code>FOFL0003</code>| The specified path does not point to a directory.|<code>filedeclare option db:list(xyz 'file.txtno')</code>|- valign="top" scope="row"|<code>FOFL0004</code>| The specified path points to a directory.|<code>file:read('directory')</code>|- valign="top" scope="row"|<code>FOFL0005</code>| The specified encoding is not supported.|<code>file:read('file.txt', 'UTF99')</code>|- valign="top" scope="row"|<code>FOFL9999</code>| A file operation fails for any other reason.|<code></code>|} ==[[HTTP Functions]] Errors== Error Codes: <code>FOHC</code> {| class="wikitable" width="100%"! width="5%"|Code! width="50%"|Description! width="45%"|Examples|- valign="top" scope="row"|<code>FOHC0001</code>| The specified URL is invalid.|<code></code>|- valign="top" scope="row"|<code>FOHC0002</code>| The requested method is not valid for HTTP.|<code></code>|- valign="top" scope="row"|<code>FOHC0004</code>| The request element is not valid.|<code></code>|- valign="top" scope="row"|<code>FOHC0005</code>| An HTTP error occurred.|<code></code>|- valign="top" scope="row"|<code>FOHC0006</code>| The provided credentials are invalid.|<code></code>|- valign="top" scope="row"|<code>FOHC0007</code>| The HTML input could not be parsed.|<code></code>|} ==[[SQL Functions]] Errors== Error Codes: <code>FOSQ</code> {| class="wikitable" width="100%"! width="5%"|Code! width="50%"|Description! width="45%"|Examples|- valign="top" scope="row"|<code>FOSQ0001</code>| An SQL exception occurred.|<code></code>|- valign="top" scope="row"|<code>FOSQ0002</code>| No opened connection with the specified id found.|<code></code>|- valign="top" scope="row"|<code>FOSQ0003</code>| Number of parameters differs from number of placeholders.|<code>; 1</code>
|- valign="top" scope="row"
|<code>FOSQ0004overflow</code>| No parameter type specifiedStack overflow.|<code>declare function local:a() { local:b() + 1 };<br/>declare function local:b() { local:a() + 2 };<br/>local:a()</code>
|- valign="top" scope="row"
|<code>FOSQ0005permission</code>| An unexpected attribute was foundThe current user has insufficient [[User Management|permissions]] to open a database, update nodes, etc.|<code>db:open('admin')</code>
|- valign="top" scope="row"
|<code>FOSQ0006restxq</code>| The specified format is illegalErrors related to [[RESTXQ]].|<code>%restxq:GET('x')</code>
|- valign="top" scope="row"
|<code>FOSQ0007update</code>| The JDBC driver cannot be initializedBaseX-specific update errors.|<code><a/> update db:output('bla')</code>
|}
[[Category:XQuery]]Additional, module-specific error codes are listed in the descriptions of the query modules.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu