aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-05-19 15:37:45 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-05-19 15:37:45 -0700
commit840931eec9bfd95c2d69f6b1e60413d18dd8281e (patch)
treee72a773271b5561b5339769e91c0f97f02e7aaea /include
parenta753371f05dd116df3f27a18eb6e08e1ed0c1b4f (diff)
More import fixes
Diffstat (limited to 'include')
-rw-r--r--include/grpc++/impl/codegen/status.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/grpc++/impl/codegen/status.h b/include/grpc++/impl/codegen/status.h
index 31fd6cdbe7..e89103f85b 100644
--- a/include/grpc++/impl/codegen/status.h
+++ b/include/grpc++/impl/codegen/status.h
@@ -75,6 +75,11 @@ class Status {
/// Is the status OK?
bool ok() const { return code_ == StatusCode::OK; }
+ // Ignores any errors. This method does nothing except potentially suppress
+ // complaints from any tools that are checking that errors are not dropped on
+ // the floor.
+ void IgnoreError() const {}
+
private:
StatusCode code_;
grpc::string error_message_;