Message接口 接口功能获取返回对象内的错误码信息。 接口格式const std::string &Message() const; 接口参数无。 使用样例获取Error对象的错误信息。 1 2auto error= Error(Error::Code::ERROR, "ERROR: Failed to get real path of home."); auto msg = error.Message(); 返回值错误码信息,string类型。 父主题: Error