summaryrefslogtreecommitdiffstats
path: root/yt/python
diff options
context:
space:
mode:
authordenvr <[email protected]>2025-08-11 12:55:10 +0300
committerdenvr <[email protected]>2025-08-11 13:10:43 +0300
commit43327a715996bc273e3f81fe088ee42cfd17714d (patch)
tree5f765fcce45bdc6eb60e0279259c0eaf57c3d06a /yt/python
parent2b9f56bc3628713372da92fe3d07b97a9f3f8532 (diff)
YT-25057 - Distributed write api (low level)
commit_hash:6326a13ba7f0a64f08305c8b062968041c73fde0
Diffstat (limited to 'yt/python')
-rw-r--r--yt/python/yt/common.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/yt/python/yt/common.py b/yt/python/yt/common.py
index e03c6b6c6ec..043a94b0b37 100644
--- a/yt/python/yt/common.py
+++ b/yt/python/yt/common.py
@@ -378,6 +378,14 @@ class YtError(Exception):
"""Backup checkpoint rejected."""
return self.contains_code(1733)
+ def is_sorting_order_violated(self):
+ """Sort order violation."""
+ return self.contains_code(301)
+
+ def is_command_not_supported(self):
+ """Command is not supported/Command is not supported by api."""
+ return self.contains_text("is not supported")
+
class YtResponseError(YtError):
"""Represents an error in YT response."""