• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 7928747020
88%

Build:
DEFAULT BRANCH: master
Ran 16 Feb 2024 09:54AM UTC
Jobs 1
Files 513
Run time 51s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Feb 2024 09:43AM UTC coverage: 86.922% (-0.01%) from 86.936%
7928747020

push

github

sergepetrenko
box/lua: allow to set custom error payload fields

See the docbot request for details.

Closes #9104

@TarantoolBot document
Title: Document custom error payload fields
Product: Tarantool
Since: 3.1
Root documents: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_error/new/
and https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_error/error/

Since Tarantool 3.1 it is possible to add a custom payload to the error on
error construction. The payload is passed as key-value pairs, where `key`
is a string, and `value` is any Lua object. The key name can be arbitrary
except it should not be the same as any of the built-in error field name:
reason, code, type, base_type, custom_type, errno, message, prev, trace.

NO_WRAP
Replace:
box.error.new({ reason = string[, code = number, type = string] }])
with:
box.error.new({ reason = string[, code = number, type = string, key1 = value1, ...] }])

Replace:
box.error({ reason = string[, code = number, type = string] }])
with:
box.error({ reason = string[, code = number, type = string, key1 = value1, ...] }])
NO_WRAP

66913 of 119416 branches covered (56.03%)

99347 of 114294 relevant lines covered (86.92%)

2703347.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7928747020.1 16 Feb 2024 09:54AM UTC 0
86.92
GitHub Action Run
Source Files on build 7928747020
Detailed source file information is not available for this build.
  • Back to Repo
  • eb2c6a4a on github
  • Prev Build on master (#7927956961)
  • Next Build on master (#7929020666)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc