IsOk接口
接口功能
判断状态对象状态是否是成功的。
接口格式
bool IsOk() const;
接口参数
无。
使用样例
status = Status(Error::Code::ERROR, "Engine init model failed: new modelBackend failed");
if (!status.IsOk()) {
return;
}
返回值
- true:返回正常,代表返回状态成功。
- false:返回异常,代表返回状态失败。
父主题: Status
判断状态对象状态是否是成功的。
bool IsOk() const;
无。
status = Status(Error::Code::ERROR, "Engine init model failed: new modelBackend failed");
if (!status.IsOk()) {
return;
}