diff options
Diffstat (limited to 'library/cpp/yt/error/error.h')
-rw-r--r-- | library/cpp/yt/error/error.h | 7 |
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> |