summaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/exception/attributes.h
blob: 4289db668b074341a2a3fb766ca0fdbea9791f88 (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
#pragma once

#include <library/cpp/yt/misc/guid.h>

#include <string>

#include <variant>

namespace NYT {

////////////////////////////////////////////////////////////////////////////////

struct TExceptionAttribute
{
    using TKey = std::string;
    using TValue = std::variant<i64, double, bool, std::string>;

    TKey Key;
    TValue Value;
};

////////////////////////////////////////////////////////////////////////////////

} // namespace NYT