diff options
author | 2017-07-13 13:39:58 -0700 | |
---|---|---|
committer | 2017-07-13 13:39:58 -0700 | |
commit | 9877189e455bbd4e86420dd586c951debbd1a97e (patch) | |
tree | 8ebe543578317099398b5ceecd505bbd427cbe5f /include | |
parent | e5b847cea428b237ba612c394dff2bf6f4c5d6f5 (diff) | |
parent | 61f21d91b8fb62e402bbd2e32dcd27b9548425a4 (diff) |
Merge pull request #11310 from nicolasnoble/import
Import mutations.
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 51fca9fc9f..6f013cf0ca 100644 --- a/include/grpc++/impl/codegen/status.h +++ b/include/grpc++/impl/codegen/status.h @@ -63,6 +63,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_; |