diff options
author | 2017-05-26 00:32:47 +0200 | |
---|---|---|
committer | 2017-05-26 00:32:47 +0200 | |
commit | 7bc55fdaa30c7de1609a276c5b1d110d4949e414 (patch) | |
tree | 16c4ae13bcaaa46f79344762d14bf2f918f6e894 /include | |
parent | 5a1d197f1ced4ed9f64a3816ac48e89d4c7687f6 (diff) | |
parent | 840931eec9bfd95c2d69f6b1e60413d18dd8281e (diff) |
Merge remote-tracking branch 'ctiller/build-wtf' into import
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc++/impl/codegen/status.h | 5 |
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_; |