aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/error/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/yt/error/error.h')
-rw-r--r--library/cpp/yt/error/error.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/library/cpp/yt/error/error.h b/library/cpp/yt/error/error.h
index 3def2c4b50..beb097afe2 100644
--- a/library/cpp/yt/error/error.h
+++ b/library/cpp/yt/error/error.h
@@ -56,6 +56,9 @@ void FormatValue(TStringBuilderBase* builder, TErrorCode code, TStringBuf spec);
////////////////////////////////////////////////////////////////////////////////
+// Forward declaration.
+class TErrorException;
+
template <class TValue>
concept CErrorNestable = requires (TError& error, TValue&& operand)
{
@@ -72,6 +75,8 @@ public:
TErrorOr(const TError& other);
TErrorOr(TError&& other) noexcept;
+ TErrorOr(const TErrorException& errorEx) noexcept;
+
TErrorOr(const std::exception& ex);
struct TDisableFormat
@@ -365,6 +370,8 @@ public:
TErrorOr(const TError& other);
TErrorOr(TError&& other) noexcept;
+ TErrorOr(const TErrorException& errorEx) noexcept;
+
TErrorOr(const std::exception& ex);
template <class U>