comparison Sources/Autogenerated/sdk_OrthancPluginDicomInstance.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
410 { 410 {
411 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); 411 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize());
412 } 412 }
413 else 413 else
414 { 414 {
415 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); 415 PythonLock::RaiseException(code);
416 return NULL; 416 return NULL;
417 } 417 }
418 } 418 }
419 419
420 static PyObject *sdk_OrthancPluginDicomInstance_OrthancPluginGetInstanceDecodedFrame( 420 static PyObject *sdk_OrthancPluginDicomInstance_OrthancPluginGetInstanceDecodedFrame(
471 { 471 {
472 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize()); 472 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize());
473 } 473 }
474 else 474 else
475 { 475 {
476 PythonLock::RaiseException(OrthancPluginErrorCode_InternalError); 476 PythonLock::RaiseException(code);
477 return NULL; 477 return NULL;
478 } 478 }
479 } 479 }
480 480
481 static PyObject *sdk_OrthancPluginDicomInstance_OrthancPluginGetInstanceAdvancedJson( 481 static PyObject *sdk_OrthancPluginDicomInstance_OrthancPluginGetInstanceAdvancedJson(