File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ class StatusCode(enum.IntEnum):
41
41
UNDETERMINED = _apis .StatusIds .UNDETERMINED
42
42
UNSUPPORTED = _apis .StatusIds .UNSUPPORTED
43
43
SESSION_BUSY = _apis .StatusIds .SESSION_BUSY
44
+ EXTERNAL_ERROR = _apis .StatusIds .EXTERNAL_ERROR
44
45
45
46
CONNECTION_LOST = _TRANSPORT_STATUSES_FIRST + 10
46
47
CONNECTION_FAILURE = _TRANSPORT_STATUSES_FIRST + 20
@@ -170,6 +171,10 @@ class SessionBusy(Error):
170
171
status = StatusCode .SESSION_BUSY
171
172
172
173
174
+ class ExternalError (Error ):
175
+ status = StatusCode .EXTERNAL_ERROR
176
+
177
+
173
178
class SessionPoolEmpty (Error , queue .Empty ):
174
179
status = StatusCode .SESSION_POOL_EMPTY
175
180
@@ -211,6 +216,7 @@ def _format_response(response: ydb_operation_pb2.Operation) -> str:
211
216
StatusCode .UNDETERMINED : Undetermined ,
212
217
StatusCode .UNSUPPORTED : Unsupported ,
213
218
StatusCode .SESSION_BUSY : SessionBusy ,
219
+ StatusCode .EXTERNAL_ERROR : ExternalError ,
214
220
}
215
221
216
222
You can’t perform that action at this time.
0 commit comments