Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH 0/2] First part of the expose box.error task
@ 2020-01-30 16:42 Leonid Vasiliev
  2020-01-30 16:42 ` [Tarantool-patches] [PATCH 1/2] Add a Lua backtrace to error Leonid Vasiliev
  2020-01-30 16:42 ` [Tarantool-patches] [PATCH 2/2] Add the custom error type Leonid Vasiliev
  0 siblings, 2 replies; 4+ messages in thread
From: Leonid Vasiliev @ 2020-01-30 16:42 UTC (permalink / raw)
  To: alexander.turenko; +Cc: tarantool-patches

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-31  7:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-30 16:42 [Tarantool-patches] [PATCH 0/2] First part of the expose box.error task Leonid Vasiliev
2020-01-30 16:42 ` [Tarantool-patches] [PATCH 1/2] Add a Lua backtrace to error Leonid Vasiliev
2020-01-30 16:42 ` [Tarantool-patches] [PATCH 2/2] Add the custom error type Leonid Vasiliev
2020-01-31  7:43   ` Leonid Vasiliev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox