aboutsummaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/interface/errors.h
diff options
context:
space:
mode:
authorhiddenpath <hiddenpath@yandex-team.com>2025-02-14 19:47:42 +0300
committerhiddenpath <hiddenpath@yandex-team.com>2025-02-14 20:04:30 +0300
commit8d42d8984e251aab3f9196c672bc4464746bd324 (patch)
tree1a9bdc164fbdede01e31fae62a15413ede5a412d /yt/cpp/mapreduce/interface/errors.h
parentf6bd8463a063ede9cf6e2590aed326ddb8e5a786 (diff)
downloadydb-8d42d8984e251aab3f9196c672bc4464746bd324.tar.gz
YT-23616: Wrap RPC errors with TErrorResponse
commit_hash:942341764b50f7cef15e1b5a473069d8af9fcc2e
Diffstat (limited to 'yt/cpp/mapreduce/interface/errors.h')
-rw-r--r--yt/cpp/mapreduce/interface/errors.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/interface/errors.h b/yt/cpp/mapreduce/interface/errors.h
index 1311dbcf3d..749b294f0f 100644
--- a/yt/cpp/mapreduce/interface/errors.h
+++ b/yt/cpp/mapreduce/interface/errors.h
@@ -159,6 +159,8 @@ class TErrorResponse
public:
TErrorResponse(int httpCode, const TString& requestId);
+ TErrorResponse(TYtError error, const TString& requestId);
+
/// Get error object returned by server.
const TYtError& GetError() const;