Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sds-keyval
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
sds-keyval
Commits
3909b762
Commit
3909b762
authored
Sep 26, 2019
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected C++ exception
parent
43f3ad8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
include/sdskv-common.hpp
include/sdskv-common.hpp
+7
-2
No files found.
include/sdskv-common.hpp
View file @
3909b762
...
...
@@ -36,8 +36,13 @@ class exception : public std::exception {
public:
exception
(
int
error
)
:
m_msg
(
std
::
string
(
"[SDSKV] "
)
+
sdskv_error_messages
[
-
error
])
,
m_error
(
error
)
{}
:
m_error
(
error
)
{
if
(
error
<
0
&&
error
>=
-
16
)
{
m_msg
=
std
::
string
(
"[SDSKV] "
)
+
sdskv_error_messages
[
-
error
];
}
else
{
m_msg
=
std
::
string
(
"[SDSKV] Unknown error code "
)
+
std
::
to_string
(
error
);
}
}
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