#pragma once #include #include #include namespace NYT { // NB: Methods below are listed in a separate file and not in error.h to prevent // circular includes cause by the fact that attributes include error. //////////////////////////////////////////////////////////////////////////////// template typename TOptionalTraits::TOptional FindAttribute(const TError& error, TStringBuf key); template typename TOptionalTraits::TOptional FindAttributeRecursive(const TError& error, TStringBuf key); //////////////////////////////////////////////////////////////////////////////// } // namespace NYT #define ERROR_HELPERS_INL_H_ #include "error_helpers-inl.h" #undef ERROR_HELPERS_INL_H_