All errors are assigned to the <code>http://basex.org/errors</code> namespace, which is statically bound to the <code>bxerr</code> prefix.
Many function signatures in this and other modules have an argument share {{Mono|$db}}as argument, which references 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.