box: prepare to encode client error args as payload
With new harness we can specify in 'errcode.h' for example ```c _(ER_TUPLE_NOT_FOUND, 4, "Tuple doesn't exist", "space", STRING, "index", STRING) \ ``` and then on ```c diag_set(ClientError, ER_TUPLE_NOT_FOUND, "space A", "index B") ``` the error set will have payload fields "space" and "index" with corresponding values. Closes #9109 NO_CHANGELOG=internal NO_DOC=internal
Showing
- src/box/errcode.c 50 additions, 3 deletionssrc/box/errcode.c
- src/box/errcode.h 50 additions, 1 deletionsrc/box/errcode.h
- src/box/error.cc 64 additions, 3 deletionssrc/box/error.cc
- test/unit/CMakeLists.txt 1 addition, 1 deletiontest/unit/CMakeLists.txt
- test/unit/error.c 138 additions, 2 deletionstest/unit/error.c
Loading
Please register or sign in to comment