aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/error/error_code.h
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2025-02-22 17:28:25 +0300
committerbabenko <babenko@yandex-team.com>2025-02-22 17:48:29 +0300
commit59afaa0cb7cd89146dd10f5446256afcce33bd0e (patch)
tree38d3c46bcba8da7c3b8ffc6b818695bc6b62d532 /library/cpp/yt/error/error_code.h
parent1d9cc117e33b162a5247032e175ed7ea26971437 (diff)
downloadydb-59afaa0cb7cd89146dd10f5446256afcce33bd0e.tar.gz
YT-22593: More trivial TString->std::string migrations
[nodiff:runtime] commit_hash:1ba799aed1703ab7c6304b6da7090b3337f768dd
Diffstat (limited to 'library/cpp/yt/error/error_code.h')
-rw-r--r--library/cpp/yt/error/error_code.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/yt/error/error_code.h b/library/cpp/yt/error/error_code.h
index 1c2c08fbb4..fe1a25c3c3 100644
--- a/library/cpp/yt/error/error_code.h
+++ b/library/cpp/yt/error/error_code.h
@@ -19,9 +19,9 @@ public:
struct TErrorCodeInfo
{
- TString Namespace;
+ std::string Namespace;
//! Human-readable error code name.
- TString Name;
+ std::string Name;
bool operator==(const TErrorCodeInfo& rhs) const;
};
@@ -30,8 +30,8 @@ public:
{
int From;
int To;
- TString Namespace;
- std::function<TString(int code)> Formatter;
+ std::string Namespace;
+ std::function<std::string(int code)> Formatter;
TErrorCodeInfo Get(int code) const;
bool Intersects(const TErrorCodeRangeInfo& other) const;
@@ -51,9 +51,9 @@ public:
void RegisterErrorCode(int code, const TErrorCodeInfo& errorCodeInfo);
//! Registers a range of error codes given a human-readable code to name formatter.
- void RegisterErrorCodeRange(int from, int to, TString namespaceName, std::function<TString(int code)> formatter);
+ void RegisterErrorCodeRange(int from, int to, std::string namespaceName, std::function<std::string(int code)> formatter);
- static TString ParseNamespace(const std::type_info& errorCodeEnumTypeInfo);
+ static std::string ParseNamespace(const std::type_info& errorCodeEnumTypeInfo);
private:
THashMap<int, TErrorCodeInfo> CodeToInfo_;