Skip to content
Snippets Groups Projects
Commit b2b6a9eb authored by Nathaniel Manista's avatar Nathaniel Manista
Browse files

ServicerContext methods doc string fix and tweak

ServicerContext.set_code takes a (grpc.)StatusCode, not an integer.
parent edcd4916
No related branches found
No related tags found
No related merge requests found
......@@ -767,8 +767,8 @@ class ServicerContext(six.with_metaclass(abc.ABCMeta, RpcContext)):
gRPC runtime to determine the status code of the RPC.
Args:
code: The integer status code of the RPC to be transmitted to the
invocation side of the RPC.
code: A StatusCode value to be transmitted to the invocation side of the
RPC as the status code of the RPC.
"""
raise NotImplementedError()
......@@ -780,8 +780,8 @@ class ServicerContext(six.with_metaclass(abc.ABCMeta, RpcContext)):
details to transmit.
Args:
details: The details string of the RPC to be transmitted to
the invocation side of the RPC.
details: A string to be transmitted to the invocation side of the RPC as
the status details of the RPC.
"""
raise NotImplementedError()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment