error: use error_payload in MessagePack codecs
Before this patch mp_error API could only encode and decode hardcoded fields from the C++ classes inheriting struct error. The fields are gone from the classes in a previous patch - moved into error_payload. Now to be able to support arbitrary fields in the payload the MessagePack encoding/decoding must use its content instead of hardcoded fields depending on error type. Part of #5568 Part of #4610 Part of #4907
Showing
- src/box/error.cc 0 additions, 7 deletionssrc/box/error.cc
- src/box/error.h 26 additions, 2 deletionssrc/box/error.h
- src/box/mp_error.cc 57 additions, 137 deletionssrc/box/mp_error.cc
- src/lib/core/diag.c 10 additions, 7 deletionssrc/lib/core/diag.c
- src/lib/core/diag.h 9 additions, 0 deletionssrc/lib/core/diag.h
- src/lib/core/exception.h 66 additions, 0 deletionssrc/lib/core/exception.h
- test/unit/mp_error.cc 70 additions, 4 deletionstest/unit/mp_error.cc
- test/unit/mp_error.result 22 additions, 5 deletionstest/unit/mp_error.result
Loading
Please register or sign in to comment