aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/error/public.h
blob: 77ce70ee07f67763ca832648d8d8420beb45dbce (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
28
29
30
31
#pragma once

#include "error_code.h"

namespace NYT {

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

template <class T>
class TErrorOr;

using TError = TErrorOr<void>;

struct TErrorAttribute;
class TErrorAttributes;
struct TOriginAttributes;

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

YT_DEFINE_ERROR_ENUM(
    ((OK)                    (0))
    ((Generic)               (1))
    ((Canceled)              (2))
    ((Timeout)               (3))
    ((FutureCombinerFailure) (4))
    ((FutureCombinerShortcut)(5))
);

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

} // namespace NYT