Mercurial > hg > orthanc-python
comparison Sources/Autogenerated/sdk_OrthancPluginWorklistQuery.impl.h @ 77:e7ff5efb100d
Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 09 Aug 2021 18:16:42 +0200 |
parents | cbfc72a53970 |
children | eb6ac5a801d1 |
comparison
equal
deleted
inserted
replaced
76:8da2a7bef495 | 77:e7ff5efb100d |
---|---|
122 { | 122 { |
123 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); | 123 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); |
124 } | 124 } |
125 else | 125 else |
126 { | 126 { |
127 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); | 127 PythonLock::RaiseException(code); |
128 return NULL; | 128 return NULL; |
129 } | 129 } |
130 } | 130 } |
131 | 131 |
132 | 132 |