All errors are assigned to the <code>http://basex.org/errors</code> namespace, which is statically bound to the <code>bxerr</code> prefix.
==Database Nodes== Many function signatures in this and other modules share {{Mono|$db}} as argument, which references to reference an existing database. The argument may either be a string, denoting the name of the addressed database, or a single node from an already opened database. The following errors may be raised by these functions:
* '''[[#Errors|BXDB0001]]''' is raised if {{Mono|$db}} references an XML node that is not stored in a database, or is no database fragment.
* '''[[#Errors|BXDB0002]]''' is raised if the addressed database cannot be opened.
The Last not but least, the argument may also reference a BaseX-specific ''database fragment''. All XML fragments can be converted to database fragments by applying the [[XQuery_Update#transform|transform]] expression on an XML fragment:
<pre class="brush:xquery">