aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio/grpc/__init__.py
diff options
context:
space:
mode:
authorGravatar Lidi Zheng <lidiz@google.com>2018-12-12 14:31:52 -0800
committerGravatar Lidi Zheng <lidiz@google.com>2018-12-12 14:31:52 -0800
commit087d48a8bd74f39eabea96b495d132e3332b5927 (patch)
treef604be478e7eb39c5a3cc4fc6b6037944282e6a9 /src/python/grpcio/grpc/__init__.py
parentfd74fcf2a07a40cd18b5795614c9f71a0e463e87 (diff)
Update the documentation about the status code constraint
Diffstat (limited to 'src/python/grpcio/grpc/__init__.py')
-rw-r--r--src/python/grpcio/grpc/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/grpcio/grpc/__init__.py b/src/python/grpcio/grpc/__init__.py
index 441f4ac813..daf869b156 100644
--- a/src/python/grpcio/grpc/__init__.py
+++ b/src/python/grpcio/grpc/__init__.py
@@ -276,7 +276,6 @@ class Status(six.with_metaclass(abc.ABCMeta)):
Attributes:
code: A StatusCode object to be sent to the client.
- It must not be StatusCode.OK.
details: An ASCII-encodable string to be sent to the client upon
termination of the RPC.
trailing_metadata: The trailing :term:`metadata` in the RPC.
@@ -1145,7 +1144,8 @@ class ServicerContext(six.with_metaclass(abc.ABCMeta, RpcContext)):
This is an EXPERIMENTAL API.
Args:
- status: A grpc.Status object.
+ status: A grpc.Status object. The status code in it must not be
+ StatusCode.OK.
Raises:
Exception: An exception is always raised to signal the abortion the