aboutsummaryrefslogblamecommitdiffstats
path: root/library/cpp/yt/error/public.h
blob: 77ce70ee07f67763ca832648d8d8420beb45dbce (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
            
                       






                                                                                
                              
                       



                                                                                









                                                                                
                  
#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