MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Status

Class Status

tensorflow/lite/delegates/gpu/common/status.h:47–63  ·  view source on GitHub ↗

Lite version of Status without dependency on protobuf. TODO(b/128867901): Migrate to absl::Status.

Source from the content-addressed store, hash-verified

45// Lite version of Status without dependency on protobuf.
46// TODO(b/128867901): Migrate to absl::Status.
47class Status {
48 public:
49 Status() = default;
50 Status(StatusCode code) : code_(code) {}
51 Status(StatusCode code, const std::string& error_message)
52 : code_(code), error_message_(error_message) {}
53
54 const std::string& error_message() const { return error_message_; }
55 StatusCode code() const { return code_; }
56 bool ok() const { return code_ == StatusCode::kOk; }
57
58 void IgnoreError() const {}
59
60 private:
61 StatusCode code_ = StatusCode::kOk;
62 std::string error_message_;
63};
64
65#define RETURN_IF_ERROR(status) \
66 { \

Callers 15

OkStatusFunction · 0.70
AlreadyExistsErrorFunction · 0.70
DeadlineExceededErrorFunction · 0.70
FailedPreconditionErrorFunction · 0.70
InternalErrorFunction · 0.70
InvalidArgumentErrorFunction · 0.70
NotFoundErrorFunction · 0.70
OutOfRangeErrorFunction · 0.70
PermissionDeniedErrorFunction · 0.70
ResourceExhaustedErrorFunction · 0.70
UnavailableErrorFunction · 0.70
UnimplementedErrorFunction · 0.70

Calls

no outgoing calls

Tested by 5

TESTFunction · 0.40
UnArchiveMethod · 0.40
ReadManifestFunction · 0.40