Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
sds-keyval
Commits
da5277a5
Commit
da5277a5
authored
Aug 08, 2019
by
Matthieu Dorier
Browse files
debugged client c++ api
parent
f8d4e2f8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
include/sdskv-client.hpp
View file @
da5277a5
This diff is collapsed.
Click to expand it.
include/sdskv-common.hpp
View file @
da5277a5
#ifndef __SDSKV_COMMON_HPP
#define __SDSKV_COMMON_HPP
#include <sdskv-common.h>
namespace
sdskv
{
const
char
const
sdskv_error_messages
[]
=
{
const
char
*
const
sdskv_error_messages
[]
=
{
""
,
"Allocation error"
,
"Invalid argument"
,
...
...
@@ -28,15 +30,13 @@ class exception : public std::exception {
std
::
string
m_msg
;
int
m_error
;
static
const
public:
exception
(
int
error
)
:
m_msg
(
std
::
string
(
"[SDSKV] "
)
+
sdskv_error_messages
[
-
error
])
,
m_error
(
error
)
{}
const
char
*
what
()
const
{
virtual
const
char
*
what
()
const
noexcept
override
{
return
m_msg
.
c_str
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment