Commit d953caee authored by JINMEI Tatuya's avatar 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
......@@ -232,6 +232,8 @@ isc.datasrc.NotImplemented.\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\
zone The name of the zone for which the difference should be\n\
......@@ -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_SystemError, ex.what());
} catch (...) {
"Unexpected exception");
PyErr_SetString(PyExc_SystemError, "Unexpected exception");
return (NULL);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment