Mercurial > hg > orthanc-python
diff Sources/Autogenerated/sdk_OrthancPluginPeers.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_OrthancPluginPeers.impl.h Sat Jun 12 08:00:57 2021 +0200 +++ b/Sources/Autogenerated/sdk_OrthancPluginPeers.impl.h Mon Aug 09 16:59:59 2021 +0200 @@ -112,8 +112,6 @@ if (self->object_ == NULL) { - // TODO: RAISE - //PythonLock::RaiseException(module, OrthancPluginErrorCode_NullPointer); PyErr_SetString(PyExc_ValueError, "Invalid object"); return NULL; } @@ -131,8 +129,6 @@ if (self->object_ == NULL) { - // TODO: RAISE - //PythonLock::RaiseException(module, OrthancPluginErrorCode_NullPointer); PyErr_SetString(PyExc_ValueError, "Invalid object"); return NULL; } @@ -141,7 +137,6 @@ if (!PyArg_ParseTuple(args, "k", &arg0)) { - // TODO => RAISE : https://stackoverflow.com/questions/60832317 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); return NULL; } @@ -165,8 +160,6 @@ if (self->object_ == NULL) { - // TODO: RAISE - //PythonLock::RaiseException(module, OrthancPluginErrorCode_NullPointer); PyErr_SetString(PyExc_ValueError, "Invalid object"); return NULL; } @@ -175,7 +168,6 @@ if (!PyArg_ParseTuple(args, "k", &arg0)) { - // TODO => RAISE : https://stackoverflow.com/questions/60832317 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); return NULL; } @@ -199,8 +191,6 @@ if (self->object_ == NULL) { - // TODO: RAISE - //PythonLock::RaiseException(module, OrthancPluginErrorCode_NullPointer); PyErr_SetString(PyExc_ValueError, "Invalid object"); return NULL; } @@ -210,7 +200,6 @@ if (!PyArg_ParseTuple(args, "ks", &arg0, &arg1)) { - // TODO => RAISE : https://stackoverflow.com/questions/60832317 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)"); return NULL; }