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
4c4ac8b9
Commit
4c4ac8b9
authored
3 years ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: Spell checker found a few typos.
parent
526cfca2
No related branches found
No related tags found
1 merge request
!21
BUG: remove FixValue, fix linting errors, move and complete get_status_description
Pipeline
#13038
passed
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Pipeline: caosdb-cppinttest
#13039
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caosdb/status_code_description.cpp
+5
-3
5 additions, 3 deletions
src/caosdb/status_code_description.cpp
with
5 additions
and
3 deletions
src/caosdb/status_code_description.cpp
+
5
−
3
View file @
4c4ac8b9
...
@@ -53,7 +53,7 @@ namespace caosdb {
...
@@ -53,7 +53,7 @@ namespace caosdb {
auto
get_status_description
(
int
code
)
->
const
std
::
string
&
{
auto
get_status_description
(
int
code
)
->
const
std
::
string
&
{
static
const
std
::
string
MISSING_DESCRIPTION
=
"MISSING DESCRIPTION"
;
static
const
std
::
string
MISSING_DESCRIPTION
=
"MISSING DESCRIPTION"
;
static
const
std
::
map
<
int
,
std
::
string
>
descriptions
=
{
static
const
std
::
map
<
int
,
std
::
string
>
descriptions
=
{
{
StatusCode
::
INITIAL
,
"The transaction has just been intialized. It has not been executed yet "
{
StatusCode
::
INITIAL
,
"The transaction has just been in
i
tialized. It has not been executed yet "
"and clients can still change it and add sub-transactions."
},
"and clients can still change it and add sub-transactions."
},
{
StatusCode
::
GO_ON
,
"The transaction has a transaction_type yet and clients may add matching "
{
StatusCode
::
GO_ON
,
"The transaction has a transaction_type yet and clients may add matching "
"sub-transaction or execute it right-away."
},
"sub-transaction or execute it right-away."
},
...
@@ -61,7 +61,7 @@ auto get_status_description(int code) -> const std::string & {
...
@@ -61,7 +61,7 @@ auto get_status_description(int code) -> const std::string & {
{
StatusCode
::
EXECUTING
,
"The transaction is currently being executed."
},
{
StatusCode
::
EXECUTING
,
"The transaction is currently being executed."
},
{
StatusCode
::
SUCCESS
,
"The action was successful"
},
{
StatusCode
::
SUCCESS
,
"The action was successful"
},
{
StatusCode
::
CANCELLED
,
"The operation was cancel
l
ed (typically by the caller)."
},
{
StatusCode
::
CANCELLED
,
"The operation was canceled (typically by the caller)."
},
{
StatusCode
::
UNKNOWN
,
"Unknown error. This is typically a bug (server or client)."
},
{
StatusCode
::
UNKNOWN
,
"Unknown error. This is typically a bug (server or client)."
},
{
StatusCode
::
INVALID_ARGUMENT
,
{
StatusCode
::
INVALID_ARGUMENT
,
"Client specified an invalid argument. Note that this differs from FAILED_PRECONDITION. "
"Client specified an invalid argument. Note that this differs from FAILED_PRECONDITION. "
...
@@ -142,7 +142,7 @@ auto get_status_description(int code) -> const std::string & {
...
@@ -142,7 +142,7 @@ auto get_status_description(int code) -> const std::string & {
"The attempt to update this entity failed because this entity does not "
"The attempt to update this entity failed because this entity does not "
"have "
"have "
"an id. This is the case when you did not retrieve it before applying any "
"an id. This is the case when you did not retrieve it before applying any "
"changes and instantiated the Entity class explicit
e
ly."
},
"changes and instantiated the Entity class explicitly."
},
{
StatusCode
::
NOT_A_FILE_ENTITY
,
"You can only add files to file entities."
},
{
StatusCode
::
NOT_A_FILE_ENTITY
,
"You can only add files to file entities."
},
{
StatusCode
::
PATH_IS_A_DIRECTORY
,
"The given path is a directory."
},
{
StatusCode
::
PATH_IS_A_DIRECTORY
,
"The given path is a directory."
},
{
StatusCode
::
FILE_DOES_NOT_EXIST_LOCALLY
,
{
StatusCode
::
FILE_DOES_NOT_EXIST_LOCALLY
,
...
@@ -168,3 +168,5 @@ auto get_status_description(int code) -> const std::string & {
...
@@ -168,3 +168,5 @@ auto get_status_description(int code) -> const std::string & {
}
}
}
// namespace caosdb
}
// namespace caosdb
// LocalWords: ConnectionManager Extern
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