aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/yexception.h
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:27 +0300
commit55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /util/generic/yexception.h
parent7fe839092527589b38f014d854c51565b3c1adfa (diff)
downloadydb-55a7f90e4cd31e9481cace8ee5dfd682c27e810e.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/yexception.h')
-rw-r--r--util/generic/yexception.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/generic/yexception.h b/util/generic/yexception.h
index 7662c1b6393..b0c604e8c45 100644
--- a/util/generic/yexception.h
+++ b/util/generic/yexception.h
@@ -75,7 +75,7 @@ namespace NPrivateException {
template <class T>
static inline T&& operator+(const TSourceLocation& sl, T&& t) {
- return std::forward<T>(t << sl << TStringBuf(": "));
+ return std::forward<T>(t << sl << TStringBuf(": "));
}
}
@@ -180,7 +180,7 @@ TString FormatExc(const std::exception& exception);
if (Y_UNLIKELY(!(CONDITION))) { \
ythrow THROW_EXPRESSION; \
} \
- } while (false)
+ } while (false)
/// @def Y_ENSURE_SIMPLE
/// This macro works like the Y_ENSURE, but requires the second argument to be a constant string view.
@@ -194,10 +194,10 @@ TString FormatExc(const std::exception& exception);
} \
} while (false)
-#define Y_ENSURE_IMPL_1(CONDITION) Y_ENSURE_SIMPLE(CONDITION, ::TStringBuf("Condition violated: `" Y_STRINGIZE(CONDITION) "'"), ::NPrivate::ThrowYException)
+#define Y_ENSURE_IMPL_1(CONDITION) Y_ENSURE_SIMPLE(CONDITION, ::TStringBuf("Condition violated: `" Y_STRINGIZE(CONDITION) "'"), ::NPrivate::ThrowYException)
#define Y_ENSURE_IMPL_2(CONDITION, MESSAGE) Y_ENSURE_EX(CONDITION, yexception() << MESSAGE)
-#define Y_ENSURE_BT_IMPL_1(CONDITION) Y_ENSURE_SIMPLE(CONDITION, ::TStringBuf("Condition violated: `" Y_STRINGIZE(CONDITION) "'"), ::NPrivate::ThrowYExceptionWithBacktrace)
+#define Y_ENSURE_BT_IMPL_1(CONDITION) Y_ENSURE_SIMPLE(CONDITION, ::TStringBuf("Condition violated: `" Y_STRINGIZE(CONDITION) "'"), ::NPrivate::ThrowYExceptionWithBacktrace)
#define Y_ENSURE_BT_IMPL_2(CONDITION, MESSAGE) Y_ENSURE_EX(CONDITION, TWithBackTrace<yexception>() << MESSAGE)
/**