aboutsummaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/interface/errors.h
diff options
context:
space:
mode:
authorhiddenpath <hiddenpath@yandex-team.com>2025-02-17 18:27:28 +0300
committerhiddenpath <hiddenpath@yandex-team.com>2025-02-17 18:47:38 +0300
commit3c5cdafe4d5d0d0c34bbd52976d760a37861fd80 (patch)
treee3edcd75071ed42a980626f0ab0265b8c17e25d6 /yt/cpp/mapreduce/interface/errors.h
parent5bf080f68ee290850e430342c635cb62859cad61 (diff)
downloadydb-3c5cdafe4d5d0d0c34bbd52976d760a37861fd80.tar.gz
YT-23616: Add IsUnauthorized method to TErrorResponse
commit_hash:eb23d10ce4143a7cc122794f85c66072b317fc44
Diffstat (limited to 'yt/cpp/mapreduce/interface/errors.h')
-rw-r--r--yt/cpp/mapreduce/interface/errors.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/interface/errors.h b/yt/cpp/mapreduce/interface/errors.h
index 749b294f0f..a008ff07b8 100644
--- a/yt/cpp/mapreduce/interface/errors.h
+++ b/yt/cpp/mapreduce/interface/errors.h
@@ -182,6 +182,9 @@ public:
/// Check if error was caused by lack of permissions to execute request.
bool IsAccessDenied() const;
+ /// Check if error was caused by authorization issues.
+ bool IsUnauthorized() const;
+
/// Check if error was caused by failure to lock object because of another transaction is holding lock.
bool IsConcurrentTransactionLockConflict() const;