aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/error/public.h
blob: ca043976278874f9269933b13afa676905ac3de5 (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
32
#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(
    ((Fatal)                 (-1))
    ((OK)                     (0))
    ((Generic)                (1))
    ((Canceled)               (2))
    ((Timeout)                (3))
    ((FutureCombinerFailure)  (4))
    ((FutureCombinerShortcut) (5))
);

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

} // namespace NYT