未验证 提交 08547fe1 编写于 作者: Z zhagnlu 提交者: GitHub

Add errcode to minio chunkmanager exception(#25153) (#25154)

Signed-off-by: Nluzhang <luzhang@zilliz.com>
Co-authored-by: Nluzhang <luzhang@zilliz.com>
上级 63b86b32
......@@ -35,13 +35,15 @@
#include "log/Log.h"
#include "signal.h"
#define THROWS3ERROR(FUNCTION) \
do { \
auto& err = outcome.GetError(); \
std::stringstream err_msg; \
err_msg << "Error:" << #FUNCTION << ":" << err.GetExceptionName() \
<< " " << err.GetMessage(); \
throw S3ErrorException(err_msg.str()); \
#define THROWS3ERROR(FUNCTION) \
do { \
auto& err = outcome.GetError(); \
std::stringstream err_msg; \
err_msg << "Error:" << #FUNCTION \
<< "[errcode:" << int(err.GetResponseCode()) \
<< ", exception:" << err.GetExceptionName() \
<< ", errmessage:" << err.GetMessage() << "]"; \
throw S3ErrorException(err_msg.str()); \
} while (0)
#define S3NoSuchBucket "NoSuchBucket"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册