Skip to content
Snippets Groups Projects
Commit 2814ab70 authored by Dmitry E. Oboukhov's avatar Dmitry E. Oboukhov
Browse files

update documentation

parent 1fed8d4e
No related branches found
No related tags found
No related merge requests found
......@@ -891,6 +891,24 @@ lua box.dostring('local f = function(key) t=box.select(0, 0, key); if t ~= nil t
</programlisting>
</listitem>
</varlistentry>
<varlistentry>
<term>
<emphasis role="lua">box.raise(errcode, errtext)</emphasis>
</term>
<listitem>
<para>
Throws client error. Lua procedure can emulate any
request errors (for example: unique key exception).
</para>
<bridgehead renderas="sect4">Example</bridgehead>
<programlisting>
lua box.raise(123, 'test')
---
error: 'test'
...
</programlisting>
</listitem>
</varlistentry>
<varlistentry>
<term>
<emphasis role="lua">box.auto_increment(space_no, ...)</emphasis>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment