diff options
author | swarmer <swarmer@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
commit | 11a24635da4c4f39428b182c49a7bc35e47c9534 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/generic/yexception.cpp | |
parent | 317da38588b7898a99fd9168571408123350012b (diff) | |
download | ydb-11a24635da4c4f39428b182c49a7bc35e47c9534.tar.gz |
Restoring authorship annotation for <swarmer@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/yexception.cpp')
-rw-r--r-- | util/generic/yexception.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/generic/yexception.cpp b/util/generic/yexception.cpp index 46dc3de712..2ce6c4369d 100644 --- a/util/generic/yexception.cpp +++ b/util/generic/yexception.cpp @@ -1,4 +1,4 @@ -#include "bt_exception.h" +#include "bt_exception.h" #include "yexception.h" #include <util/system/backtrace.h> @@ -112,11 +112,11 @@ void fputs(const std::exception& e, FILE* f) { message[len] = 0; fputs(message, f); } - -void ::NPrivate::ThrowYException(const ::NPrivate::TSimpleExceptionMessage& sm) { - throw sm.Location + yexception() << sm.Message; -} - -void ::NPrivate::ThrowYExceptionWithBacktrace(const ::NPrivate::TSimpleExceptionMessage& sm) { - throw sm.Location + TWithBackTrace<yexception>() << sm.Message; -} + +void ::NPrivate::ThrowYException(const ::NPrivate::TSimpleExceptionMessage& sm) { + throw sm.Location + yexception() << sm.Message; +} + +void ::NPrivate::ThrowYExceptionWithBacktrace(const ::NPrivate::TSimpleExceptionMessage& sm) { + throw sm.Location + TWithBackTrace<yexception>() << sm.Message; +} |