File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -75,11 +75,16 @@ _COMPRESSION_METADATA_STRING_MAPPING = {
75
75
}
76
76
77
77
class BaseError(Exception ):
78
- """ The base class for all exceptions generated by gRPC framework ."""
78
+ """ The base class for exceptions generated by gRPC AsyncIO stack ."""
79
79
80
80
81
81
class UsageError (BaseError ):
82
- """ Raised when the usage might lead to undefined behavior."""
82
+ """ Raised when the usage of API by applications is inappropriate.
83
+
84
+ For example, trying to invoke RPC on a closed channel, mixing two styles
85
+ of streaming API on the client side. This exception should not be
86
+ suppressed.
87
+ """
83
88
84
89
85
90
class AbortError (BaseError ):
@@ -91,4 +96,4 @@ class AbortError(BaseError):
91
96
92
97
93
98
class InternalError (BaseError ):
94
- """ Raised when unexpected error returned by Core ."""
99
+ """ Raised upon unexpected errors in native code ."""
Original file line number Diff line number Diff line change @@ -443,7 +443,10 @@ async def write(self, request: RequestType) -> None:
443
443
await self ._write (request )
444
444
445
445
async def done_writing (self ) -> None :
446
- """Implementation of done_writing is idempotent."""
446
+ """Signal peer that client is done writing.
447
+
448
+ This method is idempotent.
449
+ """
447
450
self ._raise_for_different_style (_APIStyle .READER_WRITER )
448
451
await self ._done_writing ()
449
452
You can’t perform that action at this time.
0 commit comments