Mercurial > hg > orthanc-python
diff Sources/Autogenerated/sdk_OrthancPluginJob.impl.h @ 75:cbfc72a53970
refactoring calls to PythonLock::RaiseException()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 09 Aug 2021 16:59:59 +0200 |
parents | 32de70a1e4c7 |
children | eb6ac5a801d1 |
line wrap: on
line diff
--- a/Sources/Autogenerated/sdk_OrthancPluginJob.impl.h Sat Jun 12 08:00:57 2021 +0200 +++ b/Sources/Autogenerated/sdk_OrthancPluginJob.impl.h Mon Aug 09 16:59:59 2021 +0200 @@ -97,8 +97,6 @@ if (self->object_ == NULL) { - // TODO: RAISE - //PythonLock::RaiseException(module, OrthancPluginErrorCode_NullPointer); PyErr_SetString(PyExc_ValueError, "Invalid object"); return NULL; } @@ -107,7 +105,6 @@ if (!PyArg_ParseTuple(args, "i", &arg0)) { - // TODO => RAISE : https://stackoverflow.com/questions/60832317 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); return NULL; } @@ -116,9 +113,7 @@ if (s.GetContent() == NULL) { - // TODO => RAISE : https://stackoverflow.com/questions/60832317 - //PythonLock::RaiseException(module, OrthancPluginErrorCode_InternalError); - PyErr_SetString(PyExc_ValueError, "Internal error"); + PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); return NULL; } else