explicit Status(Error::Code code, const std::string &msg)
接口功能
通过错误码,错误信息创建状态对象。
接口格式
explicit Status(Error::Code code, const std::string &msg);
接口参数
参数 |
是否必选 |
说明 |
取值要求 |
---|---|---|---|
code |
必选 |
错误码。 |
|
msg |
必选 |
错误信息. |
合法字符串。 |
使用样例
Status(Error::Code::ERROR, "Engine init model failed: new modelBackend failed");
返回值
返回状态对象。
父主题: Status