[Tarantool-patches] [PATCH 0/2] First part of the expose box.error task
Leonid Vasiliev
lvasiliev at tarantool.org
Thu Jan 30 19:42:35 MSK 2020
https://github.com/tarantool/tarantool/issues/4398
https://github.com/tarantool/tarantool/tree/lvasiliev/gh-4398-expose-error-module
The first part of the expose box.error task includes:
1) Lua backtrace has been added to errors of the box.error module
2) Custom error type has been added. It's allows to create a new
error type in applications where the custom type is a subtype of error.
The next parts of the expose box.error task will include:
1) Transparent marshalling through net.box
2) Lua wrappers for the box.error interface
(it has to look like a https://github.com/tarantool/errors)
Leonid Vasiliev (2):
error: Add a Lua backtrace to error
error: Add the custom error type
src/box/errcode.h | 1 +
src/box/error.cc | 45 ++++++++++++++++++
src/box/error.h | 24 ++++++++++
src/box/lua/error.cc | 99 ++++++++++++++++++++++++++++++---------
src/lib/core/diag.c | 1 +
src/lib/core/diag.h | 1 +
src/lib/core/exception.cc | 1 +
src/lua/error.c | 42 ++++++++++++++++-
src/lua/error.h | 3 ++
src/lua/error.lua | 46 +++++++++++++-----
test/app/fiber.result | 35 ++++++++++----
test/app/fiber.test.lua | 11 ++++-
test/box/misc.result | 51 +++++++++++++++++---
test/box/misc.test.lua | 19 +++++++-
14 files changed, 326 insertions(+), 53 deletions(-)
--
2.17.1
More information about the Tarantool-patches
mailing list