Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH V4 0/6] Extending error functionality
@ 2020-04-16 17:38 Leonid Vasiliev
  2020-04-16 17:38 ` [Tarantool-patches] [PATCH V4 1/6] error: add custom error type Leonid Vasiliev
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Leonid Vasiliev @ 2020-04-16 17:38 UTC (permalink / raw)
  To: v.shpilevoy; +Cc: tarantool-patches

https://github.com/tarantool/tarantool/issues/4398
https://github.com/tarantool/tarantool/tree/lvasiliev/gh-4398-expose-error-module-4

Changes from previous:
- traceback patch has been removed
- Vlad patches have been applied

According to https://github.com/tarantool/tarantool/issues/4398
(and after some discussion) we would like box.error to have:
* Ability to create new error types
* Transparent marshalling through net.box
* Lua backtrace

@Changelog
Added:
Posibility to create errors of a custom user type
Transparent marshalling error through net.box(gh-4398)

Leonid Vasiliev (5):
  error: add custom error type
  error: send custom type in IProto
  error: add session setting for error type marshaling
  error: update constructors of some errors
  error: add error MsgPack encoding

Vladislav Shpilevoy (1):
  session: add offset to SQL session settings array

 extra/exports                        |   2 +
 src/box/CMakeLists.txt               |   1 +
 src/box/errcode.h                    |   1 +
 src/box/error.cc                     | 110 ++++++++---
 src/box/error.h                      |  44 ++++-
 src/box/iproto_constants.h           |   1 +
 src/box/lua/call.c                   |  33 ++--
 src/box/lua/error.cc                 |  42 ++--
 src/box/lua/execute.c                |   2 +-
 src/box/lua/init.c                   |  56 ++++++
 src/box/lua/mp_error.cc              | 373 +++++++++++++++++++++++++++++++++++
 src/box/lua/mp_error.h               |  49 +++++
 src/box/lua/net_box.lua              |  14 +-
 src/box/lua/tuple.c                  |  28 +--
 src/box/session.cc                   |   5 +-
 src/box/session.h                    |   5 +-
 src/box/session_settings.c           |  56 ++++++
 src/box/session_settings.h           |   1 +
 src/box/sql/build.c                  |  18 +-
 src/box/sql/func.c                   |   4 +-
 src/box/xrow.c                       |  11 +-
 src/lib/core/mp_extension_types.h    |   1 +
 src/lua/error.c                      |   2 -
 src/lua/error.h                      |   3 +-
 src/lua/error.lua                    |  14 +-
 src/lua/msgpack.c                    |  28 +--
 src/lua/msgpack.h                    |   8 +-
 src/lua/utils.c                      |  13 +-
 src/lua/utils.h                      |   8 +-
 src/serializer_opts.h                |  44 +++++
 test/app/fiber.result                |   5 +-
 test/box-tap/extended_error.test.lua | 157 +++++++++++++++
 test/box/error.result                | 106 +++++++++-
 test/box/error.test.lua              |  32 +++
 test/box/session_settings.result     |   3 +-
 test/engine/func_index.result        |  14 +-
 36 files changed, 1160 insertions(+), 134 deletions(-)
 create mode 100644 src/box/lua/mp_error.cc
 create mode 100644 src/box/lua/mp_error.h
 create mode 100644 src/serializer_opts.h
 create mode 100755 test/box-tap/extended_error.test.lua

-- 
2.7.4

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

end of thread, other threads:[~2020-04-18 17:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-16 17:38 [Tarantool-patches] [PATCH V4 0/6] Extending error functionality Leonid Vasiliev
2020-04-16 17:38 ` [Tarantool-patches] [PATCH V4 1/6] error: add custom error type Leonid Vasiliev
2020-04-17  0:49   ` Vladislav Shpilevoy
2020-04-18 17:14     ` lvasiliev
2020-04-16 17:38 ` [Tarantool-patches] [PATCH V4 2/6] error: send custom type in IProto Leonid Vasiliev
2020-04-17  0:51   ` Vladislav Shpilevoy
2020-04-16 17:38 ` [Tarantool-patches] [PATCH V4 3/6] session: add offset to SQL session settings array Leonid Vasiliev
2020-04-16 17:38 ` [Tarantool-patches] [PATCH V4 4/6] error: add session setting for error type marshaling Leonid Vasiliev
2020-04-16 19:48   ` Konstantin Osipov
2020-04-17  0:51     ` Vladislav Shpilevoy
2020-04-17  7:35       ` Konstantin Osipov
2020-04-16 17:38 ` [Tarantool-patches] [PATCH V4 5/6] error: update constructors of some errors Leonid Vasiliev
2020-04-16 17:38 ` [Tarantool-patches] [PATCH V4 6/6] error: add error MsgPack encoding Leonid Vasiliev
2020-04-17  0:58   ` Vladislav Shpilevoy
2020-04-18 17:46     ` lvasiliev
2020-04-17  0:51 ` [Tarantool-patches] [PATCH V4 0/6] Extending error functionality Vladislav Shpilevoy

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