diff options
author | glebx777 <glebx777@yandex-team.ru> | 2022-02-10 16:49:44 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:44 +0300 |
commit | ab9150ae9d81b97b19a2a6a8b903f9a40791c8b4 (patch) | |
tree | ff7ea20bcb3779c1ae74319692b5b48686d480cc /util/generic/yexception.h | |
parent | 5a8cb97e0064c6b1afe060dc7a4a7c9c0eb879be (diff) | |
download | ydb-ab9150ae9d81b97b19a2a6a8b903f9a40791c8b4.tar.gz |
Restoring authorship annotation for <glebx777@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/yexception.h')
-rw-r--r-- | util/generic/yexception.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/util/generic/yexception.h b/util/generic/yexception.h index b0c604e8c45..c77cd96db1e 100644 --- a/util/generic/yexception.h +++ b/util/generic/yexception.h @@ -22,21 +22,21 @@ class TBackTrace; namespace NPrivateException { - class TTempBufCuttingWrapperOutput: public IOutputStream { - public: - TTempBufCuttingWrapperOutput(TTempBuf& tempbuf) - : TempBuf_(tempbuf) - { - } - - void DoWrite(const void* data, size_t len) override { - TempBuf_.Append(data, Min(len, TempBuf_.Left())); - } - - private: - TTempBuf& TempBuf_; - }; - + class TTempBufCuttingWrapperOutput: public IOutputStream { + public: + TTempBufCuttingWrapperOutput(TTempBuf& tempbuf) + : TempBuf_(tempbuf) + { + } + + void DoWrite(const void* data, size_t len) override { + TempBuf_.Append(data, Min(len, TempBuf_.Left())); + } + + private: + TTempBuf& TempBuf_; + }; + class yexception: public std::exception { public: yexception(); @@ -51,7 +51,7 @@ namespace NPrivateException { template <class T> inline void Append(const T& t) { - TTempBufCuttingWrapperOutput tempBuf(Buf_); + TTempBufCuttingWrapperOutput tempBuf(Buf_); static_cast<IOutputStream&>(tempBuf) << t; ZeroTerminate(); } |