blob: b68385be3570ac79b44bea84142ae88c5ab6823a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include <library/cpp/yt/error/error.h>
#include <library/cpp/yt/error/error_attributes.h>
#include <library/cpp/yt/misc/optional.h>
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 <class T>
typename TOptionalTraits<T>::TOptional FindAttribute(const TError& error, TStringBuf key);
template <class T>
typename TOptionalTraits<T>::TOptional FindAttributeRecursive(const TError& error, TStringBuf key);
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT
#define ERROR_HELPERS_INL_H_
#include "error_helpers-inl.h"
#undef ERROR_HELPERS_INL_H_
|