[tarantool-patches] Re: [PATCH v3 1/4] error: introduce error rebulding API
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Wed May 16 20:06:44 MSK 2018
The patch is removed.
On 15/05/2018 22:54, Vladislav Shpilevoy wrote:
> Some of modules are out of box library and returns their custom
> or common errors like SocketError, IllegalParams erc. But when
> the core code is used in the box library, some of errors must be
> converted into another errors. For example, it would be useful to
> be able to transform IllegalParams into ClientError.
>
> The patch introduces diag_reset, that takes new error type and
> custom arguments depending on the type. An error, that must be
> available for rebuilding must have Rebuild<error_name> method,
> that takes old error object, and custom arguments.
> ---
> src/box/error.cc | 27 +++++++++++++++++++++++++++
> src/box/error.h | 5 +++++
> src/diag.h | 9 +++++++++
> 3 files changed, 41 insertions(+)
>
More information about the Tarantool-patches
mailing list