Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
537a16c1
Verified
Commit
537a16c1
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
EHN: add INTEGRITY_VIOLATION as MessageCode
parent
acebed80
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#15801
passed with warnings
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Pipeline: caosdb-cppinttest
#15804
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/caosdb/message_code.h
+2
-0
2 additions, 0 deletions
include/caosdb/message_code.h
proto
+1
-1
1 addition, 1 deletion
proto
with
3 additions
and
1 deletion
include/caosdb/message_code.h
+
2
−
0
View file @
537a16c1
...
@@ -100,6 +100,7 @@ enum MessageCode {
...
@@ -100,6 +100,7 @@ enum MessageCode {
_MAP_MESSAGE_CODE
(
PROPERTY_WITH_DESCRIPTION_OVERRIDE
),
_MAP_MESSAGE_CODE
(
PROPERTY_WITH_DESCRIPTION_OVERRIDE
),
_MAP_MESSAGE_CODE
(
PROPERTY_WITH_NAME_OVERRIDE
),
_MAP_MESSAGE_CODE
(
PROPERTY_WITH_NAME_OVERRIDE
),
_MAP_MESSAGE_CODE
(
INTEGER_VALUE_OUT_OF_RANGE
),
_MAP_MESSAGE_CODE
(
INTEGER_VALUE_OUT_OF_RANGE
),
_MAP_MESSAGE_CODE
(
INTEGRITY_VIOLOATION
),
};
};
[[
nodiscard
]]
inline
auto
get_message_code
(
int
code
)
noexcept
->
MessageCode
{
[[
nodiscard
]]
inline
auto
get_message_code
(
int
code
)
noexcept
->
MessageCode
{
...
@@ -163,6 +164,7 @@ enum MessageCode {
...
@@ -163,6 +164,7 @@ enum MessageCode {
MessageCode
::
PROPERTY_WITH_DESCRIPTION_OVERRIDE
,
MessageCode
::
PROPERTY_WITH_DESCRIPTION_OVERRIDE
,
MessageCode
::
PROPERTY_WITH_NAME_OVERRIDE
,
MessageCode
::
PROPERTY_WITH_NAME_OVERRIDE
,
MessageCode
::
INTEGER_VALUE_OUT_OF_RANGE
,
MessageCode
::
INTEGER_VALUE_OUT_OF_RANGE
,
MessageCode
::
INTEGRITY_VIOLOATION
,
};
};
for
(
MessageCode
known_code
:
all_codes
)
{
for
(
MessageCode
known_code
:
all_codes
)
{
...
...
This diff is collapsed.
Click to expand it.
proto
@
c01fd9ff
Compare
063b0942
...
c01fd9ff
Subproject commit
063b09421ad064e13fa858076fcb4de616cfe6cb
Subproject commit
c01fd9ff1471adafa707fdb36bdaa49749079fa6
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment