获取状态对象的错误码。
Error::Code StatusCode() const;
无。
创建一个Status对象,然后获取状态对象的错误码。
1 2
auto status = Status(Error::Code::ERROR, "Engine init model failed: new modelBackend failed"); auto code = status.StatusCode();
错误码枚举。