HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
,
26
UT_ORM_NOT_SUPPORTED
,
27
UT_ORM_OPERATION_FAILED
,
28
UT_ORM_INCORRECT_TYPE
,
29
UT_ORM_BAD_MIGRATION
,
30
UT_ORM_MIG_MISSING_COL
,
31
UT_ORM_MIG_INV_COL_TYPE
,
32
UT_ORM_MIG_INV_COL_PROP
,
33
UT_ORM_MIG_MISSING
,
34
UT_ORM_MIG_BAD_FIELDS
,
35
UT_ORM_MIG_OVERRIDE
,
36
UT_ORM_MIG_DEP_CYCLE
,
37
UT_ORM_JOIN_FAILED
,
38
UT_ORM_MISSING_COL
,
39
UT_ORM_UNKNOWN_MODEL
,
40
UT_ORM_INVALID_ARGUMENT
,
41
UT_ORM_INVALID_M2M_MANAGER
,
42
};
43
44
UT_API
const
UT_ErrorCategory
&
GetOrmErrorCategory
();
45
46
inline
UT_ErrorCode
47
make_error_code
(
UT::SqlOrmError
e)
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::SqlOrmError::UT_ORM_NOT_SUPPORTED
UT::SqlOrmError::UT_ORM_OPERATION_FAILED
UT::make_error_code
UT_ErrorCode make_error_code(UT::SqlOrmError e)
Definition:
UT_ORMError.h:47
UT::SqlOrmError::UT_ORM_MIG_DEP_CYCLE
UT::SqlOrmError::UT_ORM_UNKNOWN_MODEL
UT::SqlOrmError::UT_ORM_OK
UT::SqlOrmError::UT_ORM_MISSING_COL
UT::SqlOrmError
SqlOrmError
Error codes to describe ORM errors.
Definition:
UT_ORMError.h:23
UT_API.h
UT::SqlOrmError::UT_ORM_INVALID_M2M_MANAGER
UT_API
#define UT_API
Definition:
UT_API.h:14
UT_ErrorCategory
std::error_category UT_ErrorCategory
Definition:
UT_ErrorCode.h:22
UT::SqlOrmError::UT_ORM_MIG_BAD_FIELDS
UT::SqlOrmError::UT_ORM_MIG_MISSING
UT::GetOrmErrorCategory
UT_API const UT_ErrorCategory & GetOrmErrorCategory()
UT_ErrorCode.h
UT::SqlOrmError::UT_ORM_MIG_INV_COL_TYPE
UT::SqlOrmError::UT_ORM_INCORRECT_TYPE
UT::SqlOrmError::UT_ORM_BAD_MIGRATION
UT::SqlOrmError::UT_ORM_JOIN_FAILED
UT_ErrorCode
std::error_code UT_ErrorCode
Definition:
UT_ErrorCode.h:20
UT::SqlOrmError::UT_ORM_INVALID_ARGUMENT
UT::SqlOrmError::UT_ORM_MIG_OVERRIDE
UT::SqlOrmError::UT_ORM_MIG_MISSING_COL
UT::SqlOrmError::UT_ORM_MIG_INV_COL_PROP
UT
UT_ORMError.h
Generated on Thu Sep 4 2025 02:39:49 for HDK by
1.8.6