Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
d953caee
Commit
d953caee
authored
Nov 19, 2011
by
JINMEI Tatuya
Browse files
[1372] in get_journal_reader(), converted std::exception and other C++
exception to Python SystemError instead of datasrc.Error.
parent
5d382b42
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/python/isc/datasrc/client_inc.cc
View file @
d953caee
...
...
@@ -232,6 +232,8 @@ isc.datasrc.NotImplemented.\n\
Exceptions:
\n
\
isc.datasrc.NotImplemented The data source does not support differences.
\n
\
isc.datasrc.Error Other operational errors at the data source level.
\n
\
SystemError An unexpected error in the backend C++ code. Either a rare
\n
\
system error such as short memory or an implementation bug.
\n
\
\n
\
Parameters:
\n
\
zone The name of the zone for which the difference should be
\n
\
...
...
src/lib/python/isc/datasrc/client_python.cc
View file @
d953caee
...
...
@@ -203,10 +203,9 @@ DataSourceClient_getJournalReader(PyObject* po_self, PyObject* args) {
}
catch
(
const
DataSourceError
&
ex
)
{
PyErr_SetString
(
getDataSourceException
(
"Error"
),
ex
.
what
());
}
catch
(
const
std
::
exception
&
ex
)
{
PyErr_SetString
(
getDataSourceException
(
"
Error
"
)
,
ex
.
what
());
PyErr_SetString
(
PyExc_System
Error
,
ex
.
what
());
}
catch
(...)
{
PyErr_SetString
(
getDataSourceException
(
"Error"
),
"Unexpected exception"
);
PyErr_SetString
(
PyExc_SystemError
,
"Unexpected exception"
);
}
}
return
(
NULL
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment