HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ORMError.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_ORMError.h
7  *
8  * COMMENTS:
9  *
10  *
11  */
12 
13 #ifndef __UT_ORMERROR_H__
14 #define __UT_ORMERROR_H__
15 
16 #include "UT_API.h"
17 
18 #include "UT_ErrorCode.h"
19 
20 namespace UT
21 {
22 /// Error codes to describe ORM errors.
23 enum class SqlOrmError
24 {
25  UT_ORM_OK,
42 };
43 
45 
46 inline UT_ErrorCode
48 {
49  return UT_ErrorCode{static_cast<int>(e), GetOrmErrorCategory()};
50 }
51 } // namespace UT
52 
53 namespace std
54 {
55  template <> struct is_error_code_enum<UT::SqlOrmError> : true_type
56  {
57  };
58 }
59 
60 #endif // __UT_ORMERROR_H__
61 
UT_ErrorCode make_error_code(UT::SqlOrmError e)
Definition: UT_ORMError.h:47
SqlOrmError
Error codes to describe ORM errors.
Definition: UT_ORMError.h:23
#define UT_API
Definition: UT_API.h:14
std::error_category UT_ErrorCategory
Definition: UT_ErrorCode.h:22
UT_API const UT_ErrorCategory & GetOrmErrorCategory()
std::error_code UT_ErrorCode
Definition: UT_ErrorCode.h:20