MCPcopy Create free account
hub / github.com/baidu/tera / SetError

Method SetError

src/sdk/http/http.cc:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 StatusCode() { code_ = kOk; }
37 bool Ok() { return code_ == kOk; }
38 void SetError(const std::string& reason) {
39 code_ = kError;
40 reason_ = reason;
41 }
42 std::string GetReason() { return reason_; }
43
44 private:

Callers 2

DoGetMethod · 0.45
DoPutMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected