获取返回对象状态,是否是正常状态。
bool IsOk() const;
无。
auto error = Error(Code code = Code::OK); if (!error.IsOk()) { return -1; }