9 #ifndef NEM_SDK_INTERFACE_DEFINE_EXCEPTION_DEFINE_H_
10 #define NEM_SDK_INTERFACE_DEFINE_EXCEPTION_DEFINE_H_
38 exception_code_(error), exception_message_(message) {
46 return exception_code_;
55 exception_code_ = code;
63 return exception_message_;
72 exception_message_ = msg;
76 std::string exception_message_;
#define NNEM_SDK_INTERFACE_BEGIN_DECLS
#define NNEM_SDK_INTERFACE_END_DECLS
NEException(NEExceptionCode error, const std::string &message)
构造函数
std::string ExceptionMessage() const
获取异常描述
NEExceptionCode ExceptionCode() const
获取异常码
void ExceptionCode(NEExceptionCode code)
设置异常码
void ExceptionMessage(const std::string &msg)
设置异常描述
#define NEM_SDK_INTERFACE_EXPORT