From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 25E1F46970E for ; Thu, 30 Jan 2020 19:42:44 +0300 (MSK) From: Leonid Vasiliev Date: Thu, 30 Jan 2020 19:42:35 +0300 Message-Id: Subject: [Tarantool-patches] [PATCH 0/2] First part of the expose box.error task List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: alexander.turenko@tarantool.org Cc: tarantool-patches@dev.tarantool.org 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