aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/exception/exception.h
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.ru>2022-02-10 16:49:19 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:19 +0300
commitcec37806d8847aa3db53bafc9e251d4aaf325c12 (patch)
tree4a61c191e93e31d9ab423e258c71ab43550ee3d2 /library/cpp/yt/exception/exception.h
parent58cd0b86ed99a72df22479e26a20bc1c1e57e65e (diff)
downloadydb-cec37806d8847aa3db53bafc9e251d4aaf325c12.tar.gz
Restoring authorship annotation for <babenko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt/exception/exception.h')
-rw-r--r--library/cpp/yt/exception/exception.h90
1 files changed, 45 insertions, 45 deletions
diff --git a/library/cpp/yt/exception/exception.h b/library/cpp/yt/exception/exception.h
index 7d35637d60..9697c1d51f 100644
--- a/library/cpp/yt/exception/exception.h
+++ b/library/cpp/yt/exception/exception.h
@@ -1,45 +1,45 @@
-#pragma once
-
-#include <util/generic/string.h>
-
-#include <exception>
-
-namespace NYT {
-
-////////////////////////////////////////////////////////////////////////////////
-// These are poor man's versions of NYT::TErrorException to be used in
-// a limited subset of core libraries that are needed to implement NYT::TError.
-
-class TSimpleException
- : public std::exception
-{
-public:
- explicit TSimpleException(TString message);
-
- const TString& GetMesage() const;
- const char* what() const noexcept override;
-
-protected:
- const TString Message_;
-};
-
-class TCompositeException
- : public TSimpleException
-{
-public:
- explicit TCompositeException(TString message);
- TCompositeException(
- const std::exception& exception,
- TString message);
-
- const std::exception_ptr& GetInnerException() const;
- const char* what() const noexcept override;
-
-private:
- const std::exception_ptr InnerException_;
- const TString What_;
-};
-
-////////////////////////////////////////////////////////////////////////////////
-
-} // namespace NYT
+#pragma once
+
+#include <util/generic/string.h>
+
+#include <exception>
+
+namespace NYT {
+
+////////////////////////////////////////////////////////////////////////////////
+// These are poor man's versions of NYT::TErrorException to be used in
+// a limited subset of core libraries that are needed to implement NYT::TError.
+
+class TSimpleException
+ : public std::exception
+{
+public:
+ explicit TSimpleException(TString message);
+
+ const TString& GetMesage() const;
+ const char* what() const noexcept override;
+
+protected:
+ const TString Message_;
+};
+
+class TCompositeException
+ : public TSimpleException
+{
+public:
+ explicit TCompositeException(TString message);
+ TCompositeException(
+ const std::exception& exception,
+ TString message);
+
+ const std::exception_ptr& GetInnerException() const;
+ const char* what() const noexcept override;
+
+private:
+ const std::exception_ptr InnerException_;
+ const TString What_;
+};
+
+////////////////////////////////////////////////////////////////////////////////
+
+} // namespace NYT