Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
HEP
HEPnOS
Commits
219509af
Commit
219509af
authored
Feb 26, 2020
by
Matthieu Dorier
Browse files
catching exception properly in WriteBatchImpl
parent
1af4ffbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/WriteBatchImpl.hpp
View file @
219509af
...
...
@@ -45,9 +45,11 @@ class WriteBatchImpl {
*
ok
=
1
;
try
{
db
->
put_multi
(
keys
,
vals
);
}
catch
(
Exception
&
ex
)
{
*
ok
=
0
;
*
exception
=
ex
;
}
catch
(
sdskv
::
exception
&
ex
)
{
if
(
ex
.
error
()
!=
SDSKV_ERR_KEYEXISTS
)
{
*
ok
=
0
;
*
exception
=
Exception
(
std
::
string
(
"SDSKV error: "
)
+
ex
.
what
());
}
}
}
...
...
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