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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
661c1dc4
Verified
Commit
661c1dc4
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into f-insert
parents
b620fcfa
d1525b52
No related branches found
No related tags found
No related merge requests found
Pipeline
#11055
failed
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/caosdb/transaction_status.h
+5
-0
5 additions, 0 deletions
include/caosdb/transaction_status.h
with
5 additions
and
0 deletions
include/caosdb/transaction_status.h
+
5
−
0
View file @
661c1dc4
...
...
@@ -43,6 +43,8 @@ using caosdb::exceptions::TransactionError;
*/
class
TransactionStatus
{
public:
// REFACTORING NEEDED: When you touch this code again consider writing a
// macro, because this is a lot of redundant code here...
inline
static
auto
INITIAL
()
->
const
TransactionStatus
&
{
static
const
TransactionStatus
initial
(
StatusCode
::
INITIAL
,
caosdb
::
get_status_description
(
StatusCode
::
INITIAL
));
...
...
@@ -61,6 +63,9 @@ public:
}
inline
static
auto
RPC_ERROR
(
const
std
::
string
&
details
)
->
const
TransactionStatus
{
// We use the GENERIC_RPC_ERROR here because we might want to add further
// RPC_ERROR states with different error codes (which stem from GRPC) here
// in the future.
return
TransactionStatus
(
StatusCode
::
GENERIC_RPC_ERROR
,
caosdb
::
get_status_description
(
StatusCode
::
GENERIC_RPC_ERROR
)
+
...
...
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